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

Side by Side Diff: chrome/browser/web_resource/web_resource_service.cc

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 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
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 #include "chrome/browser/web_resource/web_resource_service.h" 5 #include "chrome/browser/web_resource/web_resource_service.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/string_number_conversions.h"
9 #include "base/string_util.h" 10 #include "base/string_util.h"
10 #include "base/string_number_conversions.h"
11 #include "base/threading/thread_restrictions.h" 11 #include "base/threading/thread_restrictions.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/prefs/pref_service.h" 16 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/sync/sync_ui_util.h" 18 #include "chrome/browser/sync/sync_ui_util.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "chrome/common/extensions/extension.h" 20 #include "chrome/common/extensions/extension.h"
21 #include "chrome/common/net/url_fetcher.h" 21 #include "chrome/common/net/url_fetcher.h"
22 #include "chrome/common/notification_service.h"
23 #include "chrome/common/web_resource/web_resource_unpacker.h" 22 #include "chrome/common/web_resource/web_resource_unpacker.h"
24 #include "content/browser/browser_thread.h" 23 #include "content/browser/browser_thread.h"
24 #include "content/common/notification_service.h"
25 #include "googleurl/src/gurl.h" 25 #include "googleurl/src/gurl.h"
26 #include "net/base/load_flags.h" 26 #include "net/base/load_flags.h"
27 #include "net/url_request/url_request_status.h" 27 #include "net/url_request/url_request_status.h"
28 28
29 class WebResourceService::WebResourceFetcher 29 class WebResourceService::WebResourceFetcher
30 : public URLFetcher::Delegate { 30 : public URLFetcher::Delegate {
31 public: 31 public:
32 explicit WebResourceFetcher(WebResourceService* web_resource_service) : 32 explicit WebResourceFetcher(WebResourceService* web_resource_service) :
33 ALLOW_THIS_IN_INITIALIZER_LIST(fetcher_factory_(this)), 33 ALLOW_THIS_IN_INITIALIZER_LIST(fetcher_factory_(this)),
34 web_resource_service_(web_resource_service) { 34 web_resource_service_(web_resource_service) {
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 281 }
282 282
283 void WebResourceService::UpdateResourceCache(const std::string& json_data) { 283 void WebResourceService::UpdateResourceCache(const std::string& json_data) {
284 UnpackerClient* client = new UnpackerClient(this, json_data); 284 UnpackerClient* client = new UnpackerClient(this, json_data);
285 client->Start(); 285 client->Start();
286 286
287 // Set cache update time in preferences. 287 // Set cache update time in preferences.
288 prefs_->SetString(last_update_time_pref_name_, 288 prefs_->SetString(last_update_time_pref_name_,
289 base::DoubleToString(base::Time::Now().ToDoubleT())); 289 base::DoubleToString(base::Time::Now().ToDoubleT()));
290 } 290 }
OLDNEW
« no previous file with comments | « chrome/browser/web_resource/web_resource_service.h ('k') | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698