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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/DEPS ('k') | chrome/browser/chrome_blob_storage_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_
6 #define CHROME_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_
7 #pragma once
8
9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h"
11 #include "chrome/browser/chrome_thread.h"
12
13 class GURL;
14
15 namespace webkit_blob {
16 class BlobStorageController;
17 }
18
19 // A context class that keeps track of BlobStorageController used by the chrome.
20 // There is an instance associated with each Profile. There could be multiple
21 // URLRequestContexts in the same profile that refers to the same instance.
22 //
23 // All methods, except the ctor, are expected to be called on
24 // the IO thread (unless specifically called out in doc comments).
25 class ChromeBlobStorageContext
26 : public base::RefCountedThreadSafe<ChromeBlobStorageContext,
27 ChromeThread::DeleteOnIOThread> {
28 public:
29 ChromeBlobStorageContext();
30
31 void InitializeOnIOThread();
32
33 webkit_blob::BlobStorageController* controller() const {
34 return controller_.get();
35 }
36
37 private:
38 friend class ChromeThread;
39 friend class DeleteTask<ChromeBlobStorageContext>;
40
41 virtual ~ChromeBlobStorageContext();
42
43 scoped_ptr<webkit_blob::BlobStorageController> controller_;
44 };
45
46 #endif // CHROME_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_
OLDNEW
« 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