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

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 11238034: Added completion notification to Profile's ClearNetworkingHistorySince. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed superflous empty line. Created 8 years, 1 month 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 // Returns the helper object that provides the proxy configuration service 318 // Returns the helper object that provides the proxy configuration service
319 // access to the the proxy configuration possibly defined by preferences. 319 // access to the the proxy configuration possibly defined by preferences.
320 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; 320 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0;
321 321
322 // Returns the Predictor object used for dns prefetch. 322 // Returns the Predictor object used for dns prefetch.
323 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; 323 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0;
324 324
325 // Deletes all network related data since |time|. It deletes transport 325 // Deletes all network related data since |time|. It deletes transport
326 // security state since |time| and it also delete HttpServerProperties data. 326 // security state since |time| and it also delete HttpServerProperties data.
327 // The implementation is free to run this on a background thread, so when this 327 // Works asynchronously, however if the |completion| callback is non-null, it
328 // method returns data is not guaranteed to be deleted. 328 // will be posted on the UI thread once the removal process completes.
329 virtual void ClearNetworkingHistorySince(base::Time time) = 0; 329 virtual void ClearNetworkingHistorySince(base::Time time,
330 const base::Closure& completion) = 0;
330 331
331 // Returns the home page for this profile. 332 // Returns the home page for this profile.
332 virtual GURL GetHomePage() = 0; 333 virtual GURL GetHomePage() = 0;
333 334
334 // Returns whether or not the profile was created by a version of Chrome 335 // Returns whether or not the profile was created by a version of Chrome
335 // more recent (or equal to) the one specified. 336 // more recent (or equal to) the one specified.
336 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; 337 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0;
337 338
338 std::string GetDebugName(); 339 std::string GetDebugName();
339 340
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 struct hash<Profile*> { 423 struct hash<Profile*> {
423 std::size_t operator()(Profile* const& p) const { 424 std::size_t operator()(Profile* const& p) const {
424 return reinterpret_cast<std::size_t>(p); 425 return reinterpret_cast<std::size_t>(p);
425 } 426 }
426 }; 427 };
427 428
428 } // namespace BASE_HASH_NAMESPACE 429 } // namespace BASE_HASH_NAMESPACE
429 #endif 430 #endif
430 431
431 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 432 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698