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

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_model.h

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 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
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/toolbar/toolbar_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_TOOLBAR_TOOLBAR_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/string16.h"
12 13
13 class Browser; 14 class Browser;
14 class NavigationController; 15 class NavigationController;
15 16
16 // This class is the model used by the toolbar, location bar and autocomplete 17 // This class is the model used by the toolbar, location bar and autocomplete
17 // edit. It populates its states from the current navigation entry retrieved 18 // edit. It populates its states from the current navigation entry retrieved
18 // from the navigation controller returned by GetNavigationController(). 19 // from the navigation controller returned by GetNavigationController().
19 class ToolbarModel { 20 class ToolbarModel {
20 public: 21 public:
21 // TODO(wtc): unify ToolbarModel::SecurityLevel with SecurityStyle. We 22 // TODO(wtc): unify ToolbarModel::SecurityLevel with SecurityStyle. We
(...skipping 20 matching lines...) Expand all
42 43
43 // Returns the resource_id of the icon to show to the left of the address, 44 // Returns the resource_id of the icon to show to the left of the address,
44 // based on the current URL. This doesn't cover specialized icons while the 45 // based on the current URL. This doesn't cover specialized icons while the
45 // user is editing; see AutocompleteEditView::GetIcon(). 46 // user is editing; see AutocompleteEditView::GetIcon().
46 int GetIcon() const; 47 int GetIcon() const;
47 48
48 // Returns the name of the EV cert holder. Only call this when the security 49 // Returns the name of the EV cert holder. Only call this when the security
49 // level is EV_SECURE. 50 // level is EV_SECURE.
50 std::wstring GetEVCertName() const; 51 std::wstring GetEVCertName() const;
51 52
53 string16 GetSiteName() const;
54 string16 GetSiteAccount() const;
55
52 // Getter/setter of whether the text in location bar is currently being 56 // Getter/setter of whether the text in location bar is currently being
53 // edited. 57 // edited.
54 void set_input_in_progress(bool value) { input_in_progress_ = value; } 58 void set_input_in_progress(bool value) { input_in_progress_ = value; }
55 bool input_in_progress() const { return input_in_progress_; } 59 bool input_in_progress() const { return input_in_progress_; }
56 60
57 private: 61 private:
58 // Returns the navigation controller used to retrieve the navigation entry 62 // Returns the navigation controller used to retrieve the navigation entry
59 // from which the states are retrieved. 63 // from which the states are retrieved.
60 // If this returns NULL, default values are used. 64 // If this returns NULL, default values are used.
61 NavigationController* GetNavigationController() const; 65 NavigationController* GetNavigationController() const;
62 66
63 Browser* browser_; 67 Browser* browser_;
64 68
65 // Whether the text in the location bar is currently being edited. 69 // Whether the text in the location bar is currently being edited.
66 bool input_in_progress_; 70 bool input_in_progress_;
67 71
68 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModel); 72 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModel);
69 }; 73 };
70 74
71 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ 75 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/toolbar/toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698