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

Side by Side Diff: content/browser/chrome_blob_storage_context.h

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

Powered by Google App Engine
This is Rietveld 408576698