| 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/common/mojo/service_registry_impl.h" | |
| 18 #include "content/public/browser/render_frame_host.h" | 17 #include "content/public/browser/render_frame_host.h" |
| 19 #include "content/public/common/javascript_message_type.h" | 18 #include "content/public/common/javascript_message_type.h" |
| 20 #include "content/public/common/page_transition_types.h" | 19 #include "content/public/common/page_transition_types.h" |
| 21 #include "third_party/WebKit/public/web/WebTextDirection.h" | 20 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 22 | 21 |
| 23 class GURL; | 22 class GURL; |
| 24 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 23 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 25 struct FrameHostMsg_OpenURL_Params; | 24 struct FrameHostMsg_OpenURL_Params; |
| 26 struct FrameMsg_Navigate_Params; | 25 struct FrameMsg_Navigate_Params; |
| 27 | 26 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual const std::string& GetFrameName() OVERRIDE; | 59 virtual const std::string& GetFrameName() OVERRIDE; |
| 61 virtual bool IsCrossProcessSubframe() OVERRIDE; | 60 virtual bool IsCrossProcessSubframe() OVERRIDE; |
| 62 virtual GURL GetLastCommittedURL() OVERRIDE; | 61 virtual GURL GetLastCommittedURL() OVERRIDE; |
| 63 virtual gfx::NativeView GetNativeView() OVERRIDE; | 62 virtual gfx::NativeView GetNativeView() OVERRIDE; |
| 64 virtual void ExecuteJavaScript( | 63 virtual void ExecuteJavaScript( |
| 65 const base::string16& javascript) OVERRIDE; | 64 const base::string16& javascript) OVERRIDE; |
| 66 virtual void ExecuteJavaScript( | 65 virtual void ExecuteJavaScript( |
| 67 const base::string16& javascript, | 66 const base::string16& javascript, |
| 68 const JavaScriptResultCallback& callback) OVERRIDE; | 67 const JavaScriptResultCallback& callback) OVERRIDE; |
| 69 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; | 68 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; |
| 70 virtual ServiceRegistry* GetServiceRegistry() OVERRIDE; | |
| 71 | 69 |
| 72 // IPC::Sender | 70 // IPC::Sender |
| 73 virtual bool Send(IPC::Message* msg) OVERRIDE; | 71 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 74 | 72 |
| 75 // IPC::Listener | 73 // IPC::Listener |
| 76 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 77 | 75 |
| 78 void Init(); | 76 void Init(); |
| 79 int routing_id() const { return routing_id_; } | 77 int routing_id() const { return routing_id_; } |
| 80 void OnCreateChildFrame(int new_routing_id, | 78 void OnCreateChildFrame(int new_routing_id, |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 295 |
| 298 // Map from notification_id to a callback to cancel them. | 296 // Map from notification_id to a callback to cancel them. |
| 299 std::map<int, base::Closure> cancel_notification_callbacks_; | 297 std::map<int, base::Closure> cancel_notification_callbacks_; |
| 300 | 298 |
| 301 int routing_id_; | 299 int routing_id_; |
| 302 bool is_swapped_out_; | 300 bool is_swapped_out_; |
| 303 | 301 |
| 304 // When the last BeforeUnload message was sent. | 302 // When the last BeforeUnload message was sent. |
| 305 base::TimeTicks send_before_unload_start_time_; | 303 base::TimeTicks send_before_unload_start_time_; |
| 306 | 304 |
| 307 ServiceRegistryImpl service_registry_; | |
| 308 | |
| 309 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 305 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 310 | 306 |
| 311 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 307 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 312 }; | 308 }; |
| 313 | 309 |
| 314 } // namespace content | 310 } // namespace content |
| 315 | 311 |
| 316 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 312 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |