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

Side by Side Diff: chrome/browser/content_settings/tab_specific_content_settings.h

Issue 23537029: Save password functionality added to the save password bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review 1 Created 7 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_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 int64 frame_id, 288 int64 frame_id,
289 int64 parent_frame_id, 289 int64 parent_frame_id,
290 bool is_main_frame, 290 bool is_main_frame,
291 const GURL& validated_url, 291 const GURL& validated_url,
292 bool is_error_page, 292 bool is_error_page,
293 bool is_iframe_srcdoc, 293 bool is_iframe_srcdoc,
294 content::RenderViewHost* render_view_host) OVERRIDE; 294 content::RenderViewHost* render_view_host) OVERRIDE;
295 virtual void AppCacheAccessed(const GURL& manifest_url, 295 virtual void AppCacheAccessed(const GURL& manifest_url,
296 bool blocked_by_policy) OVERRIDE; 296 bool blocked_by_policy) OVERRIDE;
297 297
298 // If user clicks on 'save password' this will have the password saved upon 298 // Called when the user clicks 'save password' button. Instructs
299 // the next navigation. 299 // |form_to_save| to save the password when the next navigation occurs or
300 // when the tab is closed.
300 bool PasswordAccepted(); 301 bool PasswordAccepted();
Peter Kasting 2013/09/10 23:04:41 These two functions should also be replaced by a s
npentrel 2013/09/11 09:10:42 Done.
301 302
302 // If user clicks on 'never save password for this site' this have the 303 // Called when the user clicks 'never for this site' button. Instructs
303 // password blacklisted upon the next navigation. 304 // |form_to_save| to blacklist the password when the next navigation occurs
305 // or when the tab is closed.
304 bool PasswordFormBlacklisted(); 306 bool PasswordFormBlacklisted();
305 307
306 // Message handlers. Public for testing. 308 // Message handlers. Public for testing.
307 void OnContentBlocked(ContentSettingsType type, 309 void OnContentBlocked(ContentSettingsType type,
308 const std::string& resource_identifier); 310 const std::string& resource_identifier);
309 void OnContentAllowed(ContentSettingsType type); 311 void OnContentAllowed(ContentSettingsType type);
310 312
311 // These methods are invoked on the UI thread by the static functions above. 313 // These methods are invoked on the UI thread by the static functions above.
312 // Public for testing. 314 // Public for testing.
313 void OnCookiesRead(const GURL& url, 315 void OnCookiesRead(const GURL& url,
(...skipping 21 matching lines...) Expand all
335 bool allowed); 337 bool allowed);
336 338
337 // This method is called to update the status about the microphone and 339 // This method is called to update the status about the microphone and
338 // camera stream access. |request_permissions| contains a list of requested 340 // camera stream access. |request_permissions| contains a list of requested
339 // media stream types and the permission for each type. 341 // media stream types and the permission for each type.
340 void OnMediaStreamPermissionSet( 342 void OnMediaStreamPermissionSet(
341 const GURL& request_origin, 343 const GURL& request_origin,
342 const MediaStreamDevicesController::MediaStreamTypePermissionMap& 344 const MediaStreamDevicesController::MediaStreamTypePermissionMap&
343 request_permissions); 345 request_permissions);
344 346
345 // This method is called to pass the |form_to_save| on a successful password 347 // Called when a password form is submitted. |form_to_save| is the submitted
346 // submission. It also updates the status of the save password content 348 // form. This form can save or blacklist the login credentials via
347 // setting. 349 // PasswordAccepted() and PasswordFormBlacklisted respectively.
348 void OnPasswordSubmitted(PasswordFormManager* form_to_save); 350 void OnPasswordSubmitted(PasswordFormManager* form_to_save);
349 351
350 // There methods are called to update the status about MIDI access. 352 // There methods are called to update the status about MIDI access.
351 void OnMIDISysExAccessed(const GURL& reqesting_origin); 353 void OnMIDISysExAccessed(const GURL& reqesting_origin);
352 void OnMIDISysExAccessBlocked(const GURL& requesting_origin); 354 void OnMIDISysExAccessBlocked(const GURL& requesting_origin);
353 355
354 // Adds the given |SiteDataObserver|. The |observer| is notified when a 356 // Adds the given |SiteDataObserver|. The |observer| is notified when a
355 // locale shared object, like for example a cookie, is accessed. 357 // locale shared object, like for example a cookie, is accessed.
356 void AddSiteDataObserver(SiteDataObserver* observer); 358 void AddSiteDataObserver(SiteDataObserver* observer);
357 359
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 GURL media_stream_access_origin_; 431 GURL media_stream_access_origin_;
430 432
431 // The PasswordFormManager managing the form we're asking the user about, 433 // The PasswordFormManager managing the form we're asking the user about,
432 // and should update as per the decision. 434 // and should update as per the decision.
433 scoped_ptr<PasswordFormManager> form_to_save_; 435 scoped_ptr<PasswordFormManager> form_to_save_;
434 436
435 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); 437 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings);
436 }; 438 };
437 439
438 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 440 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698