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

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: tweak mixed content strings 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
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"
11 #include "content/public/browser/navigation_controller.h" 11 #include "content/public/browser/navigation_controller.h"
12 #include "content/public/common/frame_navigate_params.h" 12 #include "content/public/common/frame_navigate_params.h"
13 #include "content/public/common/security_style.h" 13 #include "content/public/common/security_style.h"
14 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
16 #include "third_party/skia/include/core/SkColor.h" 16 #include "third_party/skia/include/core/SkColor.h"
17 #include "ui/base/page_transition_types.h" 17 #include "ui/base/page_transition_types.h"
18 #include "ui/base/window_open_disposition.h" 18 #include "ui/base/window_open_disposition.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 class NavigationEntry; 22 class NavigationEntry;
23 class RenderFrameHost; 23 class RenderFrameHost;
24 class RenderViewHost; 24 class RenderViewHost;
25 struct SecurityStyleExplanations;
Charlie Reis 2015/06/18 20:39:52 Ditto.
estark 2015/06/18 23:13:26 Done.
25 class WebContents; 26 class WebContents;
26 class WebContentsImpl; 27 class WebContentsImpl;
27 struct AXEventNotificationDetails; 28 struct AXEventNotificationDetails;
28 struct FaviconURL; 29 struct FaviconURL;
29 struct FrameNavigateParams; 30 struct FrameNavigateParams;
30 struct LoadCommittedDetails; 31 struct LoadCommittedDetails;
31 struct LoadFromMemoryCacheDetails; 32 struct LoadFromMemoryCacheDetails;
32 struct Referrer; 33 struct Referrer;
33 struct ResourceRedirectDetails; 34 struct ResourceRedirectDetails;
34 struct ResourceRequestDetails; 35 struct ResourceRequestDetails;
(...skipping 136 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

Powered by Google App Engine
This is Rietveld 408576698