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

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

Issue 6290013: Get URLRequestContextGetter from profile associated with the WebResourceServi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/web_resource/web_resource_service.cc » ('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_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
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // ... 131 // ...
132 // ] 132 // ]
133 // } 133 // }
134 // } 134 // }
135 // 135 //
136 // Public for unit testing. 136 // Public for unit testing.
137 void UnpackLogoSignal(const DictionaryValue& parsed_json); 137 void UnpackLogoSignal(const DictionaryValue& parsed_json);
138 138
139 int cache_update_delay() const { return cache_update_delay_; } 139 int cache_update_delay() const { return cache_update_delay_; }
140 140
141 Profile* profile() const { return profile_; }
142
141 static const char* kCurrentTipPrefName; 143 static const char* kCurrentTipPrefName;
142 static const char* kTipCachePrefName; 144 static const char* kTipCachePrefName;
143 145
144 // Default server of dynamically loaded NTP HTML elements (promotions, tips): 146 // Default server of dynamically loaded NTP HTML elements (promotions, tips):
145 static const char* kDefaultWebResourceServer; 147 static const char* kDefaultWebResourceServer;
146 148
147 private: 149 private:
148 class WebResourceFetcher; 150 class WebResourceFetcher;
149 friend class WebResourceFetcher; 151 friend class WebResourceFetcher;
150 152
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 int cache_update_delay_; 200 int cache_update_delay_;
199 201
200 // True if a task has been set to update the cache when a new web resource 202 // True if a task has been set to update the cache when a new web resource
201 // becomes available. 203 // becomes available.
202 bool web_resource_update_scheduled_; 204 bool web_resource_update_scheduled_;
203 205
204 DISALLOW_COPY_AND_ASSIGN(WebResourceService); 206 DISALLOW_COPY_AND_ASSIGN(WebResourceService);
205 }; 207 };
206 208
207 #endif // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_ 209 #endif // CHROME_BROWSER_WEB_RESOURCE_WEB_RESOURCE_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/web_resource/web_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698