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

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

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
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_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_
6 #define CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ 6 #define CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // If delay_ms is positive, schedule notification with the delay. 50 // If delay_ms is positive, schedule notification with the delay.
51 // If delay_ms is 0, notify immediately by calling WebResourceStateChange(). 51 // If delay_ms is 0, notify immediately by calling WebResourceStateChange().
52 // If delay_ms is negative, do nothing. 52 // If delay_ms is negative, do nothing.
53 void PostNotification(int64 delay_ms); 53 void PostNotification(int64 delay_ms);
54 54
55 // Notify listeners that the state of a web resource has changed. 55 // Notify listeners that the state of a web resource has changed.
56 void PromoResourceStateChange(); 56 void PromoResourceStateChange();
57 57
58 // WebResourceService override to process the parsed information. 58 // WebResourceService override to process the parsed information.
59 virtual void Unpack(const base::DictionaryValue& parsed_json) OVERRIDE; 59 virtual void Unpack(const base::DictionaryValue& parsed_json) override;
60 60
61 // Allows the creation of tasks to send a notification. 61 // Allows the creation of tasks to send a notification.
62 // This allows the PromoResourceService to notify the New Tab Page immediately 62 // This allows the PromoResourceService to notify the New Tab Page immediately
63 // when a new web resource should be shown or removed. 63 // when a new web resource should be shown or removed.
64 base::WeakPtrFactory<PromoResourceService> weak_ptr_factory_; 64 base::WeakPtrFactory<PromoResourceService> weak_ptr_factory_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(PromoResourceService); 66 DISALLOW_COPY_AND_ASSIGN(PromoResourceService);
67 }; 67 };
68 68
69 #endif // CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_ 69 #endif // CHROME_BROWSER_WEB_RESOURCE_PROMO_RESOURCE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698