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

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

Issue 1181293003: Expand SecurityStyleChanged interfaces to include explanations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add CONTENT_EXPORT Created 5 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
« no previous file with comments | « content/public/browser/web_contents_delegate.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 "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 14 matching lines...) Expand all
25 class WebContents; 25 class WebContents;
26 class WebContentsImpl; 26 class WebContentsImpl;
27 struct AXEventNotificationDetails; 27 struct AXEventNotificationDetails;
28 struct FaviconURL; 28 struct FaviconURL;
29 struct FrameNavigateParams; 29 struct FrameNavigateParams;
30 struct LoadCommittedDetails; 30 struct LoadCommittedDetails;
31 struct LoadFromMemoryCacheDetails; 31 struct LoadFromMemoryCacheDetails;
32 struct Referrer; 32 struct Referrer;
33 struct ResourceRedirectDetails; 33 struct ResourceRedirectDetails;
34 struct ResourceRequestDetails; 34 struct ResourceRequestDetails;
35 struct SecurityStyleExplanations;
35 36
36 // An observer API implemented by classes which are interested in various page 37 // An observer API implemented by classes which are interested in various page
37 // load events from WebContents. They also get a chance to filter IPC messages. 38 // load events from WebContents. They also get a chance to filter IPC messages.
38 // 39 //
39 // Since a WebContents can be a delegate to almost arbitrarily many 40 // Since a WebContents can be a delegate to almost arbitrarily many
40 // RenderViewHosts, it is important to check in those WebContentsObserver 41 // RenderViewHosts, it is important to check in those WebContentsObserver
41 // methods which take a RenderViewHost that the event came from the 42 // methods which take a RenderViewHost that the event came from the
42 // RenderViewHost the observer cares about. 43 // RenderViewHost the observer cares about.
43 // 44 //
44 // Usually, observers should only care about the current RenderViewHost as 45 // Usually, observers should only care about the current RenderViewHost as
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 const FrameNavigateParams& params) {} 172 const FrameNavigateParams& params) {}
172 173
173 // And regardless of what frame navigated, this method is invoked after 174 // And regardless of what frame navigated, this method is invoked after
174 // DidCommitProvisionalLoadForFrame was invoked. 175 // DidCommitProvisionalLoadForFrame was invoked.
175 virtual void DidNavigateAnyFrame( 176 virtual void DidNavigateAnyFrame(
176 RenderFrameHost* render_frame_host, 177 RenderFrameHost* render_frame_host,
177 const LoadCommittedDetails& details, 178 const LoadCommittedDetails& details,
178 const FrameNavigateParams& params) {} 179 const FrameNavigateParams& params) {}
179 180
180 // This method is invoked when the SecurityStyle of the WebContents changes. 181 // This method is invoked when the SecurityStyle of the WebContents changes.
181 virtual void SecurityStyleChanged(content::SecurityStyle security_style) {} 182 // |security_style| is the new SecurityStyle. |security_style_explanations|
183 // contains human-readable strings explaining why the SecurityStyle of the
184 // page has been downgraded.
185 virtual void SecurityStyleChanged(
186 SecurityStyle security_style,
187 const SecurityStyleExplanations& security_style_explanations) {}
182 188
183 // This method is invoked once the window.document object of the main frame 189 // This method is invoked once the window.document object of the main frame
184 // was created. 190 // was created.
185 virtual void DocumentAvailableInMainFrame() {} 191 virtual void DocumentAvailableInMainFrame() {}
186 192
187 // This method is invoked once the onload handler of the main frame has 193 // This method is invoked once the onload handler of the main frame has
188 // completed. 194 // completed.
189 virtual void DocumentOnLoadCompletedInMainFrame() {} 195 virtual void DocumentOnLoadCompletedInMainFrame() {}
190 196
191 // This method is invoked when the document in the given frame finished 197 // This method is invoked when the document in the given frame finished
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 void ResetWebContents(); 401 void ResetWebContents();
396 402
397 WebContentsImpl* web_contents_; 403 WebContentsImpl* web_contents_;
398 404
399 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 405 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
400 }; 406 };
401 407
402 } // namespace content 408 } // namespace content
403 409
404 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 410 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698