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

Side by Side Diff: chrome/browser/ui/browser_commands.h

Issue 1314953009: Refactor WebsiteSettings to operate on a SecurityInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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_BROWSER_COMMANDS_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_COMMANDS_H_
6 #define CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ 6 #define CHROME_BROWSER_UI_BROWSER_COMMANDS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/devtools/devtools_toggle_action.h" 10 #include "chrome/browser/devtools/devtools_toggle_action.h"
11 #include "chrome/browser/ssl/security_state_model.h"
11 #include "chrome/browser/ui/host_desktop.h" 12 #include "chrome/browser/ui/host_desktop.h"
12 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" 13 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h"
13 #include "content/public/common/page_zoom.h" 14 #include "content/public/common/page_zoom.h"
14 #include "ui/base/window_open_disposition.h" 15 #include "ui/base/window_open_disposition.h"
15 16
16 class Browser; 17 class Browser;
17 class CommandObserver; 18 class CommandObserver;
18 class GURL; 19 class GURL;
19 class Profile; 20 class Profile;
20 21
21 namespace content { 22 namespace content {
22 class PageState; 23 class PageState;
23 class WebContents; 24 class WebContents;
24 struct SSLStatus;
25 } 25 }
26 26
27 namespace chrome { 27 namespace chrome {
28 28
29 // For all commands, where a tab is not specified, the active tab is assumed. 29 // For all commands, where a tab is not specified, the active tab is assumed.
30 30
31 bool IsCommandEnabled(Browser* browser, int command); 31 bool IsCommandEnabled(Browser* browser, int command);
32 bool SupportsCommand(Browser* browser, int command); 32 bool SupportsCommand(Browser* browser, int command);
33 bool ExecuteCommand(Browser* browser, int command); 33 bool ExecuteCommand(Browser* browser, int command);
34 bool ExecuteCommandWithDisposition(Browser* browser, 34 bool ExecuteCommandWithDisposition(Browser* browser,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void ManagePasswordsForPage(Browser* browser); 103 void ManagePasswordsForPage(Browser* browser);
104 #if defined(OS_WIN) 104 #if defined(OS_WIN)
105 void TogglePagePinnedToStartScreen(Browser* browser); 105 void TogglePagePinnedToStartScreen(Browser* browser);
106 #endif 106 #endif
107 void SavePage(Browser* browser); 107 void SavePage(Browser* browser);
108 bool CanSavePage(const Browser* browser); 108 bool CanSavePage(const Browser* browser);
109 void ShowFindBar(Browser* browser); 109 void ShowFindBar(Browser* browser);
110 void ShowWebsiteSettings(Browser* browser, 110 void ShowWebsiteSettings(Browser* browser,
111 content::WebContents* web_contents, 111 content::WebContents* web_contents,
112 const GURL& url, 112 const GURL& url,
113 const content::SSLStatus& ssl); 113 const SecurityStateModel::SecurityInfo& security_info);
114 void Print(Browser* browser); 114 void Print(Browser* browser);
115 bool CanPrint(Browser* browser); 115 bool CanPrint(Browser* browser);
116 #if defined(ENABLE_BASIC_PRINTING) 116 #if defined(ENABLE_BASIC_PRINTING)
117 void BasicPrint(Browser* browser); 117 void BasicPrint(Browser* browser);
118 bool CanBasicPrint(Browser* browser); 118 bool CanBasicPrint(Browser* browser);
119 #endif // ENABLE_BASIC_PRINTING 119 #endif // ENABLE_BASIC_PRINTING
120 void EmailPageLocation(Browser* browser); 120 void EmailPageLocation(Browser* browser);
121 bool CanEmailPageLocation(const Browser* browser); 121 bool CanEmailPageLocation(const Browser* browser);
122 void CutCopyPaste(Browser* browser, int command_id); 122 void CutCopyPaste(Browser* browser, int command_id);
123 void Find(Browser* browser); 123 void Find(Browser* browser);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void CreateApplicationShortcuts(Browser* browser); 166 void CreateApplicationShortcuts(Browser* browser);
167 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); 167 void CreateBookmarkAppFromCurrentWebContents(Browser* browser);
168 bool CanCreateApplicationShortcuts(const Browser* browser); 168 bool CanCreateApplicationShortcuts(const Browser* browser);
169 bool CanCreateBookmarkApp(const Browser* browser); 169 bool CanCreateBookmarkApp(const Browser* browser);
170 170
171 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); 171 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents);
172 172
173 } // namespace chrome 173 } // namespace chrome
174 174
175 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ 175 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698