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

Side by Side Diff: chrome/browser/appcache/chrome_appcache_service.h

Issue 3660002: Rename ChromeThread to BrowserThread Part13: (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/automation/ui_controls_mac.mm » ('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) 2010 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
6 #define CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 6 #define CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "chrome/browser/chrome_thread.h" 10 #include "chrome/browser/chrome_thread.h"
11 #include "chrome/browser/host_content_settings_map.h" 11 #include "chrome/browser/host_content_settings_map.h"
12 #include "chrome/common/notification_registrar.h" 12 #include "chrome/common/notification_registrar.h"
13 #include "webkit/appcache/appcache_policy.h" 13 #include "webkit/appcache/appcache_policy.h"
14 #include "webkit/appcache/appcache_service.h" 14 #include "webkit/appcache/appcache_service.h"
15 15
16 class ChromeURLRequestContext; 16 class ChromeURLRequestContext;
17 class FilePath; 17 class FilePath;
18 18
19 // An AppCacheService subclass used by the chrome. There is an instance 19 // An AppCacheService subclass used by the chrome. There is an instance
20 // associated with each Profile. This derivation adds refcounting semantics 20 // associated with each Profile. This derivation adds refcounting semantics
21 // since a profile has multiple URLRequestContexts which refer to the same 21 // since a profile has multiple URLRequestContexts which refer to the same
22 // object, and those URLRequestContexts are refcounted independently of the 22 // object, and those URLRequestContexts are refcounted independently of the
23 // owning profile. 23 // owning profile.
24 // 24 //
25 // All methods, except the ctor, are expected to be called on 25 // All methods, except the ctor, are expected to be called on
26 // the IO thread (unless specifically called out in doc comments). 26 // the IO thread (unless specifically called out in doc comments).
27 class ChromeAppCacheService 27 class ChromeAppCacheService
28 : public base::RefCountedThreadSafe<ChromeAppCacheService, 28 : public base::RefCountedThreadSafe<ChromeAppCacheService,
29 ChromeThread::DeleteOnIOThread>, 29 BrowserThread::DeleteOnIOThread>,
30 public appcache::AppCacheService, 30 public appcache::AppCacheService,
31 public appcache::AppCachePolicy, 31 public appcache::AppCachePolicy,
32 public NotificationObserver { 32 public NotificationObserver {
33 public: 33 public:
34 ChromeAppCacheService(); 34 ChromeAppCacheService();
35 35
36 void InitializeOnIOThread( 36 void InitializeOnIOThread(
37 const FilePath& profile_path, bool is_incognito, 37 const FilePath& profile_path, bool is_incognito,
38 scoped_refptr<HostContentSettingsMap> content_settings_map); 38 scoped_refptr<HostContentSettingsMap> content_settings_map);
39 39
(...skipping 18 matching lines...) Expand all
58 // NotificationObserver override 58 // NotificationObserver override
59 virtual void Observe(NotificationType type, 59 virtual void Observe(NotificationType type,
60 const NotificationSource& source, 60 const NotificationSource& source,
61 const NotificationDetails& details); 61 const NotificationDetails& details);
62 62
63 scoped_refptr<HostContentSettingsMap> host_contents_settings_map_; 63 scoped_refptr<HostContentSettingsMap> host_contents_settings_map_;
64 NotificationRegistrar registrar_; 64 NotificationRegistrar registrar_;
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 67 #endif // CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/ui_controls_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698