| OLD | NEW |
| 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" |
| 11 #include "base/optional.h" | 11 #include "base/optional.h" |
| 12 #include "base/process/kill.h" | 12 #include "base/process/kill.h" |
| 13 #include "base/process/process_handle.h" | 13 #include "base/process/process_handle.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "content/public/browser/navigation_controller.h" | 15 #include "content/public/browser/navigation_controller.h" |
| 16 #include "content/public/browser/reload_type.h" | 16 #include "content/public/browser/reload_type.h" |
| 17 #include "content/public/common/frame_navigate_params.h" | 17 #include "content/public/common/frame_navigate_params.h" |
| 18 #include "content/public/common/resource_type.h" | 18 #include "content/public/common/resource_type.h" |
| 19 #include "content/public/common/security_style.h" | |
| 20 #include "ipc/ipc_listener.h" | 19 #include "ipc/ipc_listener.h" |
| 21 #include "ipc/ipc_sender.h" | 20 #include "ipc/ipc_sender.h" |
| 21 #include "third_party/WebKit/public/platform/WebSecurityStyle.h" |
| 22 #include "third_party/WebKit/public/web/WebInputEvent.h" | 22 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 23 #include "third_party/skia/include/core/SkColor.h" | 23 #include "third_party/skia/include/core/SkColor.h" |
| 24 #include "ui/base/page_transition_types.h" | 24 #include "ui/base/page_transition_types.h" |
| 25 #include "ui/base/window_open_disposition.h" | 25 #include "ui/base/window_open_disposition.h" |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 | 28 |
| 29 class NavigationEntry; | 29 class NavigationEntry; |
| 30 class NavigationHandle; | 30 class NavigationHandle; |
| 31 class RenderFrameHost; | 31 class RenderFrameHost; |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 const GURL& validated_url, | 290 const GURL& validated_url, |
| 291 int error_code, | 291 int error_code, |
| 292 const base::string16& error_description, | 292 const base::string16& error_description, |
| 293 bool was_ignored_by_handler) {} | 293 bool was_ignored_by_handler) {} |
| 294 | 294 |
| 295 // This method is invoked when the SecurityStyle of the WebContents changes. | 295 // This method is invoked when the SecurityStyle of the WebContents changes. |
| 296 // |security_style| is the new SecurityStyle. |security_style_explanations| | 296 // |security_style| is the new SecurityStyle. |security_style_explanations| |
| 297 // contains human-readable strings explaining why the SecurityStyle of the | 297 // contains human-readable strings explaining why the SecurityStyle of the |
| 298 // page has been downgraded. | 298 // page has been downgraded. |
| 299 virtual void SecurityStyleChanged( | 299 virtual void SecurityStyleChanged( |
| 300 SecurityStyle security_style, | 300 blink::WebSecurityStyle security_style, |
| 301 const SecurityStyleExplanations& security_style_explanations) {} | 301 const SecurityStyleExplanations& security_style_explanations) {} |
| 302 | 302 |
| 303 // This method is invoked when content was loaded from an in-memory cache. | 303 // This method is invoked when content was loaded from an in-memory cache. |
| 304 virtual void DidLoadResourceFromMemoryCache( | 304 virtual void DidLoadResourceFromMemoryCache( |
| 305 const GURL& url, | 305 const GURL& url, |
| 306 const std::string& mime_type, | 306 const std::string& mime_type, |
| 307 ResourceType resource_type) {} | 307 ResourceType resource_type) {} |
| 308 | 308 |
| 309 // This method is invoked when a response has been received for a resource | 309 // This method is invoked when a response has been received for a resource |
| 310 // request. | 310 // request. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 void ResetWebContents(); | 514 void ResetWebContents(); |
| 515 | 515 |
| 516 WebContentsImpl* web_contents_; | 516 WebContentsImpl* web_contents_; |
| 517 | 517 |
| 518 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 518 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 519 }; | 519 }; |
| 520 | 520 |
| 521 } // namespace content | 521 } // namespace content |
| 522 | 522 |
| 523 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 523 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |