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

Side by Side Diff: chrome/browser/history/web_history_service.h

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HISTORY_WEB_HISTORY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_WEB_HISTORY_SERVICE_H_
6 #define CHROME_BROWSER_HISTORY_WEB_HISTORY_SERVICE_H_ 6 #define CHROME_BROWSER_HISTORY_WEB_HISTORY_SERVICE_H_
7 7
8 #include "chrome/browser/history/history_types.h" 8 #include "chrome/browser/history/history_types.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 10 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
11 11
12 namespace base { 12 namespace base {
13 class DictionaryValue; 13 class DictionaryValue;
14 } 14 }
15 15
16 namespace net { 16 namespace net {
17 class URLFetcher; 17 class URLFetcher;
18 } 18 }
19 19
20 namespace history { 20 namespace history {
21 21
22 // Provides an API for querying Google servers for a signed-in user's 22 // Provides an API for querying Google servers for a signed-in user's
23 // synced history visits. It is roughly analogous to HistoryService, and 23 // synced history visits. It is roughly analogous to HistoryService, and
24 // supports a similar API. 24 // supports a similar API.
25 class WebHistoryService : public ProfileKeyedService { 25 class WebHistoryService : public BrowserContextKeyedService {
26 public: 26 public:
27 // Handles all the work of making an API request. This class encapsulates 27 // Handles all the work of making an API request. This class encapsulates
28 // the entire state of the request. When an instance is destroyed, all 28 // the entire state of the request. When an instance is destroyed, all
29 // aspects of the request are cancelled. 29 // aspects of the request are cancelled.
30 class Request { 30 class Request {
31 public: 31 public:
32 virtual ~Request(); 32 virtual ~Request();
33 33
34 // Returns true if the request is "pending" (i.e., it has been started, but 34 // Returns true if the request is "pending" (i.e., it has been started, but
35 // is not yet been complete). 35 // is not yet been complete).
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 std::string server_version_info_; 103 std::string server_version_info_;
104 104
105 base::WeakPtrFactory<WebHistoryService> weak_ptr_factory_; 105 base::WeakPtrFactory<WebHistoryService> weak_ptr_factory_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(WebHistoryService); 107 DISALLOW_COPY_AND_ASSIGN(WebHistoryService);
108 }; 108 };
109 109
110 } // namespace history 110 } // namespace history
111 111
112 #endif // CHROME_BROWSER_HISTORY_WEB_HISTORY_SERVICE_H_ 112 #endif // CHROME_BROWSER_HISTORY_WEB_HISTORY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698