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

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

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: Remove SecurityStateModel. Created 4 years, 1 month 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/lifetime/browser_close_manager.h" 10 #include "chrome/browser/lifetime/browser_close_manager.h"
11 #include "chrome/browser/signin/chrome_signin_helper.h" 11 #include "chrome/browser/signin/chrome_signin_helper.h"
12 #include "chrome/browser/translate/chrome_translate_client.h" 12 #include "chrome/browser/translate/chrome_translate_client.h"
13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" 15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" 16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
17 #include "chrome/common/features.h" 17 #include "chrome/common/features.h"
18 #include "components/content_settings/core/common/content_settings_types.h" 18 #include "components/content_settings/core/common/content_settings_types.h"
19 #include "components/security_state/security_state_model.h"
20 #include "components/signin/core/browser/signin_header_helper.h" 19 #include "components/signin/core/browser/signin_header_helper.h"
21 #include "components/translate/core/common/translate_errors.h" 20 #include "components/translate/core/common/translate_errors.h"
22 #include "ui/base/base_window.h" 21 #include "ui/base/base_window.h"
23 #include "ui/base/window_open_disposition.h" 22 #include "ui/base/window_open_disposition.h"
24 #include "ui/gfx/native_widget_types.h" 23 #include "ui/gfx/native_widget_types.h"
25 24
26 class Browser; 25 class Browser;
27 class DownloadShelf; 26 class DownloadShelf;
28 class ExclusiveAccessContext; 27 class ExclusiveAccessContext;
29 class FindBar; 28 class FindBar;
(...skipping 21 matching lines...) Expand all
51 namespace extensions { 50 namespace extensions {
52 class Command; 51 class Command;
53 class Extension; 52 class Extension;
54 } 53 }
55 54
56 namespace gfx { 55 namespace gfx {
57 class Rect; 56 class Rect;
58 class Size; 57 class Size;
59 } 58 }
60 59
60 namespace security_state {
61 struct SecurityInfo;
62 } // namespace security_state
63
61 namespace signin_metrics { 64 namespace signin_metrics {
62 enum class AccessPoint; 65 enum class AccessPoint;
63 } 66 }
64 67
65 namespace web_modal { 68 namespace web_modal {
66 class WebContentsModalDialogHost; 69 class WebContentsModalDialogHost;
67 } 70 }
68 71
69 enum class ImeWarningBubblePermissionStatus; 72 enum class ImeWarningBubblePermissionStatus;
70 73
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 virtual void UserChangedTheme() = 0; 285 virtual void UserChangedTheme() = 0;
283 286
284 // Shows the website settings using the specified information. |virtual_url| 287 // Shows the website settings using the specified information. |virtual_url|
285 // is the virtual url of the page/frame the info applies to, |ssl| is the SSL 288 // is the virtual url of the page/frame the info applies to, |ssl| is the SSL
286 // information for that page/frame. If |show_history| is true, a section 289 // information for that page/frame. If |show_history| is true, a section
287 // showing how many times that URL has been visited is added to the page info. 290 // showing how many times that URL has been visited is added to the page info.
288 virtual void ShowWebsiteSettings( 291 virtual void ShowWebsiteSettings(
289 Profile* profile, 292 Profile* profile,
290 content::WebContents* web_contents, 293 content::WebContents* web_contents,
291 const GURL& virtual_url, 294 const GURL& virtual_url,
292 const security_state::SecurityStateModel::SecurityInfo& 295 const security_state::SecurityInfo& security_info) = 0;
293 security_info) = 0;
294 296
295 // Shows the app menu (for accessibility). 297 // Shows the app menu (for accessibility).
296 virtual void ShowAppMenu() = 0; 298 virtual void ShowAppMenu() = 0;
297 299
298 // Allows the BrowserWindow object to handle the specified keyboard event 300 // Allows the BrowserWindow object to handle the specified keyboard event
299 // before sending it to the renderer. 301 // before sending it to the renderer.
300 // Returns true if the |event| was handled. Otherwise, if the |event| would 302 // Returns true if the |event| was handled. Otherwise, if the |event| would
301 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, 303 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
302 // |*is_keyboard_shortcut| should be set to true. 304 // |*is_keyboard_shortcut| should be set to true.
303 virtual bool PreHandleKeyboardEvent( 305 virtual bool PreHandleKeyboardEvent(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 virtual std::string GetWorkspace() const = 0; 383 virtual std::string GetWorkspace() const = 0;
382 virtual bool IsVisibleOnAllWorkspaces() const = 0; 384 virtual bool IsVisibleOnAllWorkspaces() const = 0;
383 385
384 protected: 386 protected:
385 friend class BrowserCloseManager; 387 friend class BrowserCloseManager;
386 friend class BrowserView; 388 friend class BrowserView;
387 virtual void DestroyBrowser() = 0; 389 virtual void DestroyBrowser() = 0;
388 }; 390 };
389 391
390 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 392 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698