diff options
Diffstat (limited to 'chrome/browser/renderer_host/blob_dispatcher_host.h')
-rw-r--r-- | chrome/browser/renderer_host/blob_dispatcher_host.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/chrome/browser/renderer_host/blob_dispatcher_host.h b/chrome/browser/renderer_host/blob_dispatcher_host.h deleted file mode 100644 index 8ba95ff..0000000 --- a/chrome/browser/renderer_host/blob_dispatcher_host.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CHROME_BROWSER_RENDERER_HOST_BLOB_DISPATCHER_HOST_H_ -#define CHROME_BROWSER_RENDERER_HOST_BLOB_DISPATCHER_HOST_H_ - -#include "base/hash_tables.h" -#include "base/ref_counted.h" - -class ChromeBlobStorageContext; -class GURL; - -namespace IPC { -class Message; -} - -namespace webkit_blob { -class BlobData; -} - -class BlobDispatcherHost { - public: - BlobDispatcherHost(int process_id, - ChromeBlobStorageContext* blob_storage_context); - ~BlobDispatcherHost(); - - void Shutdown(); - bool OnMessageReceived(const IPC::Message& message, bool* msg_is_ok); - - private: - void OnRegisterBlobUrl(const GURL& url, - const scoped_refptr<webkit_blob::BlobData>& blob_data); - void OnRegisterBlobUrlFrom(const GURL& url, const GURL& src_url); - void OnUnregisterBlobUrl(const GURL& url); - - bool CheckPermission(webkit_blob::BlobData* blob_data) const; - - int process_id_; - scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; - - // Keep track of blob URLs registered in this process. Need to unregister - // all of them when the renderer process dies. - base::hash_set<std::string> blob_urls_; - - DISALLOW_IMPLICIT_CONSTRUCTORS(BlobDispatcherHost); -}; - -#endif // CHROME_BROWSER_RENDERER_HOST_BLOB_DISPATCHER_HOST_H_ |