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

Side by Side Diff: chrome/browser/web_resource/resource_request_allowed_notifier_test_util.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_ H_ 5 #ifndef CHROME_BROWSER_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_ H_
6 #define CHROME_BROWSER_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_ H_ 6 #define CHROME_BROWSER_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UTIL_ H_
7 7
8 #include "chrome/browser/web_resource/resource_request_allowed_notifier.h" 8 #include "chrome/browser/web_resource/resource_request_allowed_notifier.h"
9 9
10 // A subclass of ResourceRequestAllowedNotifier used to expose some 10 // A subclass of ResourceRequestAllowedNotifier used to expose some
(...skipping 16 matching lines...) Expand all
27 scoped_ptr<EulaAcceptedNotifier> eula_notifier); 27 scoped_ptr<EulaAcceptedNotifier> eula_notifier);
28 28
29 // Makes ResourceRequestsAllowed return |allowed| when it is called. 29 // Makes ResourceRequestsAllowed return |allowed| when it is called.
30 void SetRequestsAllowedOverride(bool allowed); 30 void SetRequestsAllowedOverride(bool allowed);
31 31
32 // Notify observers that requests are allowed. This will only work if 32 // Notify observers that requests are allowed. This will only work if
33 // the observer is expecting a notification. 33 // the observer is expecting a notification.
34 void NotifyObserver(); 34 void NotifyObserver();
35 35
36 // ResourceRequestAllowedNotifier overrides: 36 // ResourceRequestAllowedNotifier overrides:
37 virtual State GetResourceRequestsAllowedState() OVERRIDE; 37 virtual State GetResourceRequestsAllowedState() override;
38 virtual EulaAcceptedNotifier* CreateEulaNotifier() OVERRIDE; 38 virtual EulaAcceptedNotifier* CreateEulaNotifier() override;
39 39
40 private: 40 private:
41 scoped_ptr<EulaAcceptedNotifier> test_eula_notifier_; 41 scoped_ptr<EulaAcceptedNotifier> test_eula_notifier_;
42 bool override_requests_allowed_; 42 bool override_requests_allowed_;
43 bool requests_allowed_; 43 bool requests_allowed_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(TestRequestAllowedNotifier); 45 DISALLOW_COPY_AND_ASSIGN(TestRequestAllowedNotifier);
46 }; 46 };
47 47
48 #endif // CHROME_BROWSER_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UT IL_H_ 48 #endif // CHROME_BROWSER_WEB_RESOURCE_RESOURCE_REQUEST_ALLOWED_NOTIFIER_TEST_UT IL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698