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

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 2562503002: Generalize WebContentsObserver::SecurityStyleChanged (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | 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) 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 bool was_ignored_by_handler) {} 300 bool was_ignored_by_handler) {}
301 301
302 // This method is invoked when the SecurityStyle of the WebContents changes. 302 // This method is invoked when the SecurityStyle of the WebContents changes.
303 // |security_style| is the new SecurityStyle. |security_style_explanations| 303 // |security_style| is the new SecurityStyle. |security_style_explanations|
304 // contains human-readable strings explaining why the SecurityStyle of the 304 // contains human-readable strings explaining why the SecurityStyle of the
305 // page has been downgraded. 305 // page has been downgraded.
306 virtual void SecurityStyleChanged( 306 virtual void SecurityStyleChanged(
307 blink::WebSecurityStyle security_style, 307 blink::WebSecurityStyle security_style,
308 const SecurityStyleExplanations& security_style_explanations) {} 308 const SecurityStyleExplanations& security_style_explanations) {}
309 309
310 // This method is invoked when the visible security state of the page changes.
311 virtual void DidChangeVisibleSecurityState() {}
boliu 2016/12/07 18:58:03 I don't understand why this is needed when Securit
cjgrant 2016/12/07 19:15:53 See my initial comments on the CL. "Security styl
boliu 2016/12/07 19:53:19 I prefer the just one callback. Having two very cl
312
310 // This method is invoked when content was loaded from an in-memory cache. 313 // This method is invoked when content was loaded from an in-memory cache.
311 virtual void DidLoadResourceFromMemoryCache( 314 virtual void DidLoadResourceFromMemoryCache(
312 const GURL& url, 315 const GURL& url,
313 const std::string& mime_type, 316 const std::string& mime_type,
314 ResourceType resource_type) {} 317 ResourceType resource_type) {}
315 318
316 // This method is invoked when a response has been received for a resource 319 // This method is invoked when a response has been received for a resource
317 // request. 320 // request.
318 virtual void DidGetResourceResponseStart( 321 virtual void DidGetResourceResponseStart(
319 const ResourceRequestDetails& details) {} 322 const ResourceRequestDetails& details) {}
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 void ResetWebContents(); 524 void ResetWebContents();
522 525
523 WebContentsImpl* web_contents_; 526 WebContentsImpl* web_contents_;
524 527
525 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 528 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
526 }; 529 };
527 530
528 } // namespace content 531 } // namespace content
529 532
530 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 533 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698