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

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

Issue 1162663004: Introduce browser-side plumbing for sending the lock icon status to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased onto latest master. 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 "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
14 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
15 #include "third_party/skia/include/core/SkColor.h" 16 #include "third_party/skia/include/core/SkColor.h"
16 #include "ui/base/page_transition_types.h" 17 #include "ui/base/page_transition_types.h"
17 #include "ui/base/window_open_disposition.h" 18 #include "ui/base/window_open_disposition.h"
18 19
19 namespace content { 20 namespace content {
20 21
21 class NavigationEntry; 22 class NavigationEntry;
22 class RenderFrameHost; 23 class RenderFrameHost;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // committed. 150 // committed.
150 // 151 //
151 // If the navigation only changed the reference fragment, or was triggered 152 // If the navigation only changed the reference fragment, or was triggered
152 // using the history API (e.g. window.history.replaceState), we will receive 153 // using the history API (e.g. window.history.replaceState), we will receive
153 // this signal without a prior DidStartProvisionalLoadForFrame signal. 154 // this signal without a prior DidStartProvisionalLoadForFrame signal.
154 virtual void DidCommitProvisionalLoadForFrame( 155 virtual void DidCommitProvisionalLoadForFrame(
155 RenderFrameHost* render_frame_host, 156 RenderFrameHost* render_frame_host,
156 const GURL& url, 157 const GURL& url,
157 ui::PageTransition transition_type) {} 158 ui::PageTransition transition_type) {}
158 159
160 // This method is invoked when the security style of the WebContents changes.
161 virtual void SecurityStyleChanged(content::SecurityStyle security_style) {}
162
159 // This method is invoked when the provisional load failed. 163 // This method is invoked when the provisional load failed.
160 virtual void DidFailProvisionalLoad( 164 virtual void DidFailProvisionalLoad(
161 RenderFrameHost* render_frame_host, 165 RenderFrameHost* render_frame_host,
162 const GURL& validated_url, 166 const GURL& validated_url,
163 int error_code, 167 int error_code,
164 const base::string16& error_description) {} 168 const base::string16& error_description) {}
165 169
166 // If the provisional load corresponded to the main frame, this method is 170 // If the provisional load corresponded to the main frame, this method is
167 // invoked in addition to DidCommitProvisionalLoadForFrame. 171 // invoked in addition to DidCommitProvisionalLoadForFrame.
168 virtual void DidNavigateMainFrame( 172 virtual void DidNavigateMainFrame(
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 void ResetWebContents(); 395 void ResetWebContents();
392 396
393 WebContentsImpl* web_contents_; 397 WebContentsImpl* web_contents_;
394 398
395 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 399 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
396 }; 400 };
397 401
398 } // namespace content 402 } // namespace content
399 403
400 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 404 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698