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

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

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 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
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 #include "content/common/content_export.h"
12 13
13 class GURL; 14 class GURL;
14 15
15 namespace webkit_blob { 16 namespace webkit_blob {
16 class BlobStorageController; 17 class BlobStorageController;
17 } 18 }
18 19
19 // A context class that keeps track of BlobStorageController used by the chrome. 20 // A context class that keeps track of BlobStorageController used by the chrome.
20 // There is an instance associated with each BrowserContext. There could be 21 // There is an instance associated with each BrowserContext. There could be
21 // multiple URLRequestContexts in the same browser context that refers to the 22 // multiple URLRequestContexts in the same browser context that refers to the
22 // same instance. 23 // same instance.
23 // 24 //
24 // All methods, except the ctor, are expected to be called on 25 // All methods, except the ctor, are expected to be called on
25 // the IO thread (unless specifically called out in doc comments). 26 // the IO thread (unless specifically called out in doc comments).
26 class ChromeBlobStorageContext 27 class CONTENT_EXPORT ChromeBlobStorageContext
27 : public base::RefCountedThreadSafe<ChromeBlobStorageContext, 28 : public base::RefCountedThreadSafe<ChromeBlobStorageContext,
28 BrowserThread::DeleteOnIOThread> { 29 BrowserThread::DeleteOnIOThread> {
29 public: 30 public:
30 ChromeBlobStorageContext(); 31 ChromeBlobStorageContext();
31 32
32 void InitializeOnIOThread(); 33 void InitializeOnIOThread();
33 34
34 webkit_blob::BlobStorageController* controller() const { 35 webkit_blob::BlobStorageController* controller() const {
35 return controller_.get(); 36 return controller_.get();
36 } 37 }
37 38
38 private: 39 private:
40 friend class base::RefCountedThreadSafe<ChromeBlobStorageContext,
41 BrowserThread::DeleteOnIOThread>;
39 friend class BrowserThread; 42 friend class BrowserThread;
40 friend class DeleteTask<ChromeBlobStorageContext>; 43 friend class DeleteTask<ChromeBlobStorageContext>;
41 44
42 virtual ~ChromeBlobStorageContext(); 45 virtual ~ChromeBlobStorageContext();
43 46
44 scoped_ptr<webkit_blob::BlobStorageController> controller_; 47 scoped_ptr<webkit_blob::BlobStorageController> controller_;
45 }; 48 };
46 49
47 #endif // CONTENT_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_ 50 #endif // CONTENT_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698