OLD | NEW |
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_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ |
6 #define CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 6 #define CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "chrome/browser/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
13 #include "chrome/browser/utility_process_host.h" | 13 #include "chrome/browser/utility_process_host.h" |
14 #include "chrome/common/web_resource/web_resource_unpacker.h" | 14 #include "chrome/common/web_resource/web_resource_unpacker.h" |
15 | 15 |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 class WebResourceService | 18 class WebResourceService |
19 : public UtilityProcessHost::Client { | 19 : public UtilityProcessHost::Client { |
20 public: | 20 public: |
21 explicit WebResourceService(Profile* profile); | 21 explicit WebResourceService(Profile* profile); |
22 | 22 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 static const int kCacheUpdateDelay = 48 * 60 * 60 * 1000; | 82 static const int kCacheUpdateDelay = 48 * 60 * 60 * 1000; |
83 | 83 |
84 // Name of directory inside the profile where we will store resource-related | 84 // Name of directory inside the profile where we will store resource-related |
85 // data (for now, thumbnail images). | 85 // data (for now, thumbnail images). |
86 static const char* kResourceDirectoryName; | 86 static const char* kResourceDirectoryName; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(WebResourceService); | 88 DISALLOW_COPY_AND_ASSIGN(WebResourceService); |
89 }; | 89 }; |
90 | 90 |
91 #endif // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ | 91 #endif // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ |
OLD | NEW |