| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.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/WebKit/public/platform/WebLoadingBehaviorFlag.h" | 16 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" |
| 17 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
| 18 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" | 18 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" |
| 19 #include "v8/include/v8.h" | 19 #include "v8/include/v8.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 class WebDataSource; |
| 22 class WebFormElement; | 23 class WebFormElement; |
| 23 class WebNode; | 24 class WebNode; |
| 24 class WebString; | 25 class WebString; |
| 25 struct WebURLError; | 26 struct WebURLError; |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace content { | 29 namespace content { |
| 29 | 30 |
| 30 class RendererPpapiHost; | 31 class RendererPpapiHost; |
| 31 class RenderFrame; | 32 class RenderFrame; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 55 virtual void WidgetWillClose() {} | 56 virtual void WidgetWillClose() {} |
| 56 | 57 |
| 57 // These match the Blink API notifications | 58 // These match the Blink API notifications |
| 58 virtual void DidCreateNewDocument() {} | 59 virtual void DidCreateNewDocument() {} |
| 59 virtual void DidCreateDocumentElement() {} | 60 virtual void DidCreateDocumentElement() {} |
| 60 // Called when a provisional load is about to commit in a frame. This is | 61 // Called when a provisional load is about to commit in a frame. This is |
| 61 // dispatched just before the Javascript unload event. | 62 // dispatched just before the Javascript unload event. |
| 62 virtual void WillCommitProvisionalLoad() {} | 63 virtual void WillCommitProvisionalLoad() {} |
| 63 virtual void DidCommitProvisionalLoad(bool is_new_navigation, | 64 virtual void DidCommitProvisionalLoad(bool is_new_navigation, |
| 64 bool is_same_page_navigation) {} | 65 bool is_same_page_navigation) {} |
| 65 virtual void DidStartProvisionalLoad() {} | 66 virtual void DidStartProvisionalLoad(blink::WebDataSource* data_source) {} |
| 66 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} | 67 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} |
| 67 virtual void DidFinishLoad() {} | 68 virtual void DidFinishLoad() {} |
| 68 virtual void DidFinishDocumentLoad() {} | 69 virtual void DidFinishDocumentLoad() {} |
| 69 virtual void DidCreateScriptContext(v8::Local<v8::Context> context, | 70 virtual void DidCreateScriptContext(v8::Local<v8::Context> context, |
| 70 int world_id) {} | 71 int world_id) {} |
| 71 virtual void WillReleaseScriptContext(v8::Local<v8::Context> context, | 72 virtual void WillReleaseScriptContext(v8::Local<v8::Context> context, |
| 72 int world_id) {} | 73 int world_id) {} |
| 73 virtual void DidClearWindowObject() {} | 74 virtual void DidClearWindowObject() {} |
| 74 virtual void DidChangeManifest() {} | 75 virtual void DidChangeManifest() {} |
| 75 virtual void DidChangeScrollOffset() {} | 76 virtual void DidChangeScrollOffset() {} |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 RenderFrame* render_frame_; | 147 RenderFrame* render_frame_; |
| 147 // The routing ID of the associated RenderFrame. | 148 // The routing ID of the associated RenderFrame. |
| 148 int routing_id_; | 149 int routing_id_; |
| 149 | 150 |
| 150 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 151 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } // namespace content | 154 } // namespace content |
| 154 | 155 |
| 155 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 156 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| OLD | NEW |