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

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

Issue 13620010: Refactor ResourceRequestAllowedNotifier EULA checking into a separate class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_CHROMEOS_H_
6 #define CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_CHROMEOS_H_
7
8 #include "chrome/browser/metrics/variations/eula_accepted_notifier.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
11
12 // ChromeOS implementation of the EulaAcceptedNotifier.
13 class EulaAcceptedNotifierChromeos : public EulaAcceptedNotifier,
14 public content::NotificationObserver {
15 public:
16 EulaAcceptedNotifierChromeos();
17 virtual ~EulaAcceptedNotifierChromeos();
18
19 // EulaAcceptedNotifier overrides:
20 virtual bool IsEulaAccepted() OVERRIDE;
21
22 private:
23 // content::NotificationObserver overrides:
24 virtual void Observe(int type,
25 const content::NotificationSource& source,
26 const content::NotificationDetails& details) OVERRIDE;
27
28 // Used to listen for the EULA accepted notification.
29 content::NotificationRegistrar registrar_;
30
31 DISALLOW_COPY_AND_ASSIGN(EulaAcceptedNotifierChromeos);
32 };
33
34 #endif // CHROME_BROWSER_METRICS_VARIATIONS_EULA_ACCEPTED_NOTIFIER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698