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

Side by Side Diff: chrome/browser/extensions/settings/settings_observer.h

Issue 10698144: Remove #pragma once from chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSIONS_SETTINGS_SETTINGS_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_OBSERVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_OBSERVER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_OBSERVER_H_
7 #pragma once
8 7
9 #include "base/observer_list_threadsafe.h" 8 #include "base/observer_list_threadsafe.h"
10 #include "chrome/browser/extensions/settings/settings_namespace.h" 9 #include "chrome/browser/extensions/settings/settings_namespace.h"
11 10
12 namespace extensions { 11 namespace extensions {
13 12
14 // Interface for classes that listen to changes to extension settings. 13 // Interface for classes that listen to changes to extension settings.
15 class SettingsObserver { 14 class SettingsObserver {
16 public: 15 public:
17 // Called when a list of settings have changed for an extension. 16 // Called when a list of settings have changed for an extension.
18 virtual void OnSettingsChanged( 17 virtual void OnSettingsChanged(
19 const std::string& extension_id, 18 const std::string& extension_id,
20 settings_namespace::Namespace settings_namespace, 19 settings_namespace::Namespace settings_namespace,
21 const std::string& changes_json) = 0; 20 const std::string& changes_json) = 0;
22 21
23 virtual ~SettingsObserver() {} 22 virtual ~SettingsObserver() {}
24 }; 23 };
25 24
26 typedef ObserverListThreadSafe<SettingsObserver> 25 typedef ObserverListThreadSafe<SettingsObserver>
27 SettingsObserverList; 26 SettingsObserverList;
28 27
29 } // namespace extensions 28 } // namespace extensions
30 29
31 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_OBSERVER_H_ 30 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/settings/settings_namespace.h ('k') | chrome/browser/extensions/settings/settings_storage_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698