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

Side by Side Diff: chrome/browser/password_manager/chrome_password_manager_client.h

Issue 336763002: Password internals page: notify renderer about logging state on client construction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a ping message renderer->browser for logging activity update Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "components/password_manager/content/browser/content_password_manager_d river.h" 10 #include "components/password_manager/content/browser/content_password_manager_d river.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // The popup will be anchored at |element_bounds|. The generated password 102 // The popup will be anchored at |element_bounds|. The generated password
103 // will be no longer than |max_length|. 103 // will be no longer than |max_length|.
104 void ShowPasswordGenerationPopup(const gfx::RectF& bounds, 104 void ShowPasswordGenerationPopup(const gfx::RectF& bounds,
105 int max_length, 105 int max_length,
106 const autofill::PasswordForm& form); 106 const autofill::PasswordForm& form);
107 107
108 // Causes the password editing UI to be shown anchored at |element_bounds|. 108 // Causes the password editing UI to be shown anchored at |element_bounds|.
109 void ShowPasswordEditingPopup( 109 void ShowPasswordEditingPopup(
110 const gfx::RectF& bounds, const autofill::PasswordForm& form); 110 const gfx::RectF& bounds, const autofill::PasswordForm& form);
111 111
112 // Sends a message to the renderer with the current value of
113 // |can_use_log_router_|.
114 void NotifyRendererAboutLoggingActivityState();
engedy 2014/06/16 09:13:38 nit: I was wondering, isn't this more about "loggi
vabr (Chromium) 2014/06/20 10:47:04 Done.
115
112 Profile* const profile_; 116 Profile* const profile_;
113 117
114 password_manager::ContentPasswordManagerDriver driver_; 118 password_manager::ContentPasswordManagerDriver driver_;
115 119
116 // Observer for password generation popup. 120 // Observer for password generation popup.
117 autofill::PasswordGenerationPopupObserver* observer_; 121 autofill::PasswordGenerationPopupObserver* observer_;
118 122
119 // Controls the popup 123 // Controls the popup
120 base::WeakPtr< 124 base::WeakPtr<
121 autofill::PasswordGenerationPopupControllerImpl> popup_controller_; 125 autofill::PasswordGenerationPopupControllerImpl> popup_controller_;
122 126
123 // Allows authentication callbacks to be destroyed when this client is gone. 127 // Allows authentication callbacks to be destroyed when this client is gone.
124 base::WeakPtrFactory<ChromePasswordManagerClient> weak_factory_; 128 base::WeakPtrFactory<ChromePasswordManagerClient> weak_factory_;
125 129
126 // True if |this| is registered with some LogRouter which can accept logs. 130 // True if |this| is registered with some LogRouter which can accept logs.
127 bool can_use_log_router_; 131 bool can_use_log_router_;
128 132
129 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient); 133 DISALLOW_COPY_AND_ASSIGN(ChromePasswordManagerClient);
130 }; 134 };
131 135
132 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_ 136 #endif // CHROME_BROWSER_PASSWORD_MANAGER_CHROME_PASSWORD_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698