Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3288)

Unified Diff: chrome/browser/chrome_blob_storage_context.h

Issue 3108042: Support sending BlobData to browser process. Also support sending UploadData... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/DEPS ('k') | chrome/browser/chrome_blob_storage_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_blob_storage_context.h
===================================================================
--- chrome/browser/chrome_blob_storage_context.h (revision 0)
+++ chrome/browser/chrome_blob_storage_context.h (revision 0)
@@ -0,0 +1,46 @@
+// 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_CHROME_BLOB_STORAGE_CONTEXT_H_
+#define CHROME_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_
+#pragma once
+
+#include "base/ref_counted.h"
+#include "base/scoped_ptr.h"
+#include "chrome/browser/chrome_thread.h"
+
+class GURL;
+
+namespace webkit_blob {
+class BlobStorageController;
+}
+
+// A context class that keeps track of BlobStorageController used by the chrome.
+// There is an instance associated with each Profile. There could be multiple
+// URLRequestContexts in the same profile that refers to the same instance.
+//
+// All methods, except the ctor, are expected to be called on
+// the IO thread (unless specifically called out in doc comments).
+class ChromeBlobStorageContext
+ : public base::RefCountedThreadSafe<ChromeBlobStorageContext,
+ ChromeThread::DeleteOnIOThread> {
+ public:
+ ChromeBlobStorageContext();
+
+ void InitializeOnIOThread();
+
+ webkit_blob::BlobStorageController* controller() const {
+ return controller_.get();
+ }
+
+ private:
+ friend class ChromeThread;
+ friend class DeleteTask<ChromeBlobStorageContext>;
+
+ virtual ~ChromeBlobStorageContext();
+
+ scoped_ptr<webkit_blob::BlobStorageController> controller_;
+};
+
+#endif // CHROME_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_
Property changes on: chrome\browser\chrome_blob_storage_context.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/DEPS ('k') | chrome/browser/chrome_blob_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698