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

Side by Side Diff: chrome/browser/ui/webui/extensions/extension_settings_handler.h

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [rebase] Created 4 years, 3 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_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/navigation_controller.h" 9 #include "content/public/browser/reload_type.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
11 #include "content/public/browser/web_ui_message_handler.h" 11 #include "content/public/browser/web_ui_message_handler.h"
12 12
13 class ExtensionService; 13 class ExtensionService;
14 class GURL; 14 class GURL;
15 15
16 namespace content { 16 namespace content {
17 class WebUIDataSource; 17 class WebUIDataSource;
18 } 18 }
19 19
(...skipping 13 matching lines...) Expand all
33 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 33 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
34 34
35 // Note: This uses |web_ui()| from |WebUIMessageHandler|, so it must only be 35 // Note: This uses |web_ui()| from |WebUIMessageHandler|, so it must only be
36 // called after |web_ui->AddMessageHandler(this)| has been called. 36 // called after |web_ui->AddMessageHandler(this)| has been called.
37 void GetLocalizedValues(content::WebUIDataSource* source); 37 void GetLocalizedValues(content::WebUIDataSource* source);
38 38
39 private: 39 private:
40 // WebContentsObserver implementation. 40 // WebContentsObserver implementation.
41 void DidStartNavigationToPendingEntry( 41 void DidStartNavigationToPendingEntry(
42 const GURL& url, 42 const GURL& url,
43 content::NavigationController::ReloadType reload_type) override; 43 content::ReloadType reload_type) override;
44 44
45 // WebUIMessageHandler implementation. 45 // WebUIMessageHandler implementation.
46 void RegisterMessages() override; 46 void RegisterMessages() override;
47 47
48 // Helper method that reloads all unpacked extensions. 48 // Helper method that reloads all unpacked extensions.
49 void ReloadUnpackedExtensions(); 49 void ReloadUnpackedExtensions();
50 50
51 // Our model. Outlives us since it's owned by our containing profile. 51 // Our model. Outlives us since it's owned by our containing profile.
52 ExtensionService* extension_service_; 52 ExtensionService* extension_service_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler); 54 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingsHandler);
55 }; 55 };
56 56
57 } // namespace extensions 57 } // namespace extensions
58 58
59 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_ 59 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698