| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
| 13 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
| 14 #include "third_party/WebKit/public/platform/WebVector.h" | 14 #include "third_party/WebKit/public/platform/WebVector.h" |
| 15 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 class WebDataSource; |
| 18 class WebFormElement; | 19 class WebFormElement; |
| 19 class WebFrame; | 20 class WebFrame; |
| 20 class WebNode; | 21 class WebNode; |
| 21 class WebString; | 22 class WebString; |
| 22 struct WebURLError; | 23 struct WebURLError; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace content { | 26 namespace content { |
| 26 | 27 |
| 27 class RendererPpapiHost; | 28 class RendererPpapiHost; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 48 virtual void WasShown() {} | 49 virtual void WasShown() {} |
| 49 | 50 |
| 50 // Called when associated widget is about to close. | 51 // Called when associated widget is about to close. |
| 51 virtual void WidgetWillClose() {} | 52 virtual void WidgetWillClose() {} |
| 52 | 53 |
| 53 // These match the Blink API notifications | 54 // These match the Blink API notifications |
| 54 virtual void DidCreateNewDocument() {} | 55 virtual void DidCreateNewDocument() {} |
| 55 virtual void DidCreateDocumentElement() {} | 56 virtual void DidCreateDocumentElement() {} |
| 56 virtual void DidCommitProvisionalLoad(bool is_new_navigation, | 57 virtual void DidCommitProvisionalLoad(bool is_new_navigation, |
| 57 bool is_same_page_navigation) {} | 58 bool is_same_page_navigation) {} |
| 58 virtual void DidStartProvisionalLoad() {} | 59 virtual void DidStartProvisionalLoad(blink::WebDataSource* datasource) {} |
| 59 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} | 60 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} |
| 60 virtual void DidFinishLoad() {} | 61 virtual void DidFinishLoad() {} |
| 61 virtual void DidFinishDocumentLoad() {} | 62 virtual void DidFinishDocumentLoad() {} |
| 62 virtual void DidCreateScriptContext(v8::Local<v8::Context> context, | 63 virtual void DidCreateScriptContext(v8::Local<v8::Context> context, |
| 63 int extension_group, | 64 int extension_group, |
| 64 int world_id) {} | 65 int world_id) {} |
| 65 virtual void WillReleaseScriptContext(v8::Local<v8::Context> context, | 66 virtual void WillReleaseScriptContext(v8::Local<v8::Context> context, |
| 66 int world_id) {} | 67 int world_id) {} |
| 67 virtual void DidClearWindowObject() {} | 68 virtual void DidClearWindowObject() {} |
| 68 virtual void DidChangeManifest() {} | 69 virtual void DidChangeManifest() {} |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 RenderFrame* render_frame_; | 129 RenderFrame* render_frame_; |
| 129 // The routing ID of the associated RenderFrame. | 130 // The routing ID of the associated RenderFrame. |
| 130 int routing_id_; | 131 int routing_id_; |
| 131 | 132 |
| 132 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 133 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 } // namespace content | 136 } // namespace content |
| 136 | 137 |
| 137 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 138 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| OLD | NEW |