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

Side by Side Diff: chrome/browser/metrics/variations/resource_request_allowed_notifier.h

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 4 Created 7 years, 10 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_METRICS_VARIATIONS_RESOURCE_REQUEST_ALLOWED_NOTIFIER_H_ 5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_RESOURCE_REQUEST_ALLOWED_NOTIFIER_H_
6 #define CHROME_BROWSER_METRICS_VARIATIONS_RESOURCE_REQUEST_ALLOWED_NOTIFIER_H_ 6 #define CHROME_BROWSER_METRICS_VARIATIONS_RESOURCE_REQUEST_ALLOWED_NOTIFIER_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "net/base/network_change_notifier.h" 9 #include "net/base/network_change_notifier.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // global instance. 34 // global instance.
35 class ResourceRequestAllowedNotifier : 35 class ResourceRequestAllowedNotifier :
36 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
37 public content::NotificationObserver, 37 public content::NotificationObserver,
38 #endif 38 #endif
39 public net::NetworkChangeNotifier::ConnectionTypeObserver { 39 public net::NetworkChangeNotifier::ConnectionTypeObserver {
40 public: 40 public:
41 // Observes resource request allowed state changes. 41 // Observes resource request allowed state changes.
42 class Observer { 42 class Observer {
43 public: 43 public:
44 virtual ~Observer() { }
45
44 virtual void OnResourceRequestsAllowed() = 0; 46 virtual void OnResourceRequestsAllowed() = 0;
45 }; 47 };
46 48
47 ResourceRequestAllowedNotifier(); 49 ResourceRequestAllowedNotifier();
48 virtual ~ResourceRequestAllowedNotifier(); 50 virtual ~ResourceRequestAllowedNotifier();
49 51
50 // Sets |observer| as the service to be notified by this instance, and 52 // Sets |observer| as the service to be notified by this instance, and
51 // performs initial checks on the criteria. |observer| may not be NULL. 53 // performs initial checks on the criteria. |observer| may not be NULL.
52 // This is to be called immediately after construction of an instance of 54 // This is to be called immediately after construction of an instance of
53 // ResourceRequestAllowedNotifier to pass it the interested service. 55 // ResourceRequestAllowedNotifier to pass it the interested service.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 content::NotificationRegistrar registrar_; 110 content::NotificationRegistrar registrar_;
109 #endif 111 #endif
110 112
111 // Observing service interested in request permissions. 113 // Observing service interested in request permissions.
112 Observer* observer_; 114 Observer* observer_;
113 115
114 DISALLOW_COPY_AND_ASSIGN(ResourceRequestAllowedNotifier); 116 DISALLOW_COPY_AND_ASSIGN(ResourceRequestAllowedNotifier);
115 }; 117 };
116 118
117 #endif // CHROME_BROWSER_METRICS_VARIATIONS_RESOURCE_REQUEST_ALLOWED_NOTIFIER_H _ 119 #endif // CHROME_BROWSER_METRICS_VARIATIONS_RESOURCE_REQUEST_ALLOWED_NOTIFIER_H _
OLDNEW
« no previous file with comments | « chrome/browser/managed_mode/managed_mode_url_filter.h ('k') | chrome/browser/policy/user_info_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698