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" | 17 #include "content/common/mojo/service_registry_impl.h" |
18 #include "content/public/browser/render_frame_host.h" | 18 #include "content/public/browser/render_frame_host.h" |
19 #include "content/public/common/javascript_message_type.h" | 19 #include "content/public/common/javascript_message_type.h" |
20 #include "content/public/common/page_transition_types.h" | 20 #include "content/public/common/page_transition_types.h" |
21 #include "third_party/WebKit/public/web/WebTextDirection.h" | 21 #include "third_party/WebKit/public/web/WebTextDirection.h" |
22 | 22 |
23 class GURL; | 23 class GURL; |
24 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 24 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
25 struct FrameHostMsg_OpenURL_Params; | 25 struct FrameHostMsg_OpenURL_Params; |
26 struct FrameHostMsg_BeginNavigation_Params; | |
26 struct FrameMsg_Navigate_Params; | 27 struct FrameMsg_Navigate_Params; |
27 | 28 |
28 namespace base { | 29 namespace base { |
29 class FilePath; | 30 class FilePath; |
30 class ListValue; | 31 class ListValue; |
31 } | 32 } |
32 | 33 |
33 namespace content { | 34 namespace content { |
34 | 35 |
35 class CrossProcessFrameConnector; | 36 class CrossProcessFrameConnector; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 void OnTextSurroundingSelectionResponse(const base::string16& content, | 242 void OnTextSurroundingSelectionResponse(const base::string16& content, |
242 size_t start_offset, | 243 size_t start_offset, |
243 size_t end_offset); | 244 size_t end_offset); |
244 void OnDidAccessInitialDocument(); | 245 void OnDidAccessInitialDocument(); |
245 void OnDidDisownOpener(); | 246 void OnDidDisownOpener(); |
246 void OnUpdateTitle(int32 page_id, | 247 void OnUpdateTitle(int32 page_id, |
247 const base::string16& title, | 248 const base::string16& title, |
248 blink::WebTextDirection title_direction); | 249 blink::WebTextDirection title_direction); |
249 void OnUpdateEncoding(const std::string& encoding); | 250 void OnUpdateEncoding(const std::string& encoding); |
250 | 251 |
252 void OnBeginNavigation( | |
nasko
2014/07/03 10:26:09
nit: No need for empty line above.
clamy
2014/07/03 15:10:51
Done.
| |
253 const FrameHostMsg_BeginNavigation_Params& params); | |
254 | |
251 // Returns whether the given URL is allowed to commit in the current process. | 255 // Returns whether the given URL is allowed to commit in the current process. |
252 // This is a more conservative check than RenderProcessHost::FilterURL, since | 256 // This is a more conservative check than RenderProcessHost::FilterURL, since |
253 // it will be used to kill processes that commit unauthorized URLs. | 257 // it will be used to kill processes that commit unauthorized URLs. |
254 bool CanCommitURL(const GURL& url); | 258 bool CanCommitURL(const GURL& url); |
255 | 259 |
256 void DesktopNotificationPermissionRequestDone(int callback_context); | 260 void DesktopNotificationPermissionRequestDone(int callback_context); |
257 | 261 |
258 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 262 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
259 // refcount that calls Shutdown when it reaches zero. This allows each | 263 // refcount that calls Shutdown when it reaches zero. This allows each |
260 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 264 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
307 ServiceRegistryImpl service_registry_; | 311 ServiceRegistryImpl service_registry_; |
308 | 312 |
309 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 313 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
310 | 314 |
311 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 315 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
312 }; | 316 }; |
313 | 317 |
314 } // namespace content | 318 } // namespace content |
315 | 319 |
316 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 320 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |