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/public/browser/render_frame_host.h" | 17 #include "content/public/browser/render_frame_host.h" |
18 #include "content/public/common/javascript_message_type.h" | 18 #include "content/public/common/javascript_message_type.h" |
19 #include "content/public/common/page_transition_types.h" | 19 #include "content/public/common/page_transition_types.h" |
| 20 #include "third_party/WebKit/public/web/WebTextDirection.h" |
20 | 21 |
21 class GURL; | 22 class GURL; |
22 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 23 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
23 struct FrameHostMsg_OpenURL_Params; | 24 struct FrameHostMsg_OpenURL_Params; |
24 struct FrameMsg_Navigate_Params; | 25 struct FrameMsg_Navigate_Params; |
25 | 26 |
26 namespace base { | 27 namespace base { |
27 class FilePath; | 28 class FilePath; |
28 class ListValue; | 29 class ListValue; |
29 } | 30 } |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 bool is_reload, | 220 bool is_reload, |
220 IPC::Message* reply_msg); | 221 IPC::Message* reply_msg); |
221 void OnRequestDesktopNotificationPermission(const GURL& origin, | 222 void OnRequestDesktopNotificationPermission(const GURL& origin, |
222 int callback_id); | 223 int callback_id); |
223 void OnShowDesktopNotification( | 224 void OnShowDesktopNotification( |
224 int notification_id, | 225 int notification_id, |
225 const ShowDesktopNotificationHostMsgParams& params); | 226 const ShowDesktopNotificationHostMsgParams& params); |
226 void OnCancelDesktopNotification(int notification_id); | 227 void OnCancelDesktopNotification(int notification_id); |
227 void OnDidAccessInitialDocument(); | 228 void OnDidAccessInitialDocument(); |
228 void OnDidDisownOpener(); | 229 void OnDidDisownOpener(); |
| 230 void OnUpdateTitle(int32 page_id, |
| 231 const base::string16& title, |
| 232 blink::WebTextDirection title_direction); |
| 233 void OnUpdateEncoding(const std::string& encoding); |
229 | 234 |
230 // Returns whether the given URL is allowed to commit in the current process. | 235 // Returns whether the given URL is allowed to commit in the current process. |
231 // This is a more conservative check than RenderProcessHost::FilterURL, since | 236 // This is a more conservative check than RenderProcessHost::FilterURL, since |
232 // it will be used to kill processes that commit unauthorized URLs. | 237 // it will be used to kill processes that commit unauthorized URLs. |
233 bool CanCommitURL(const GURL& url); | 238 bool CanCommitURL(const GURL& url); |
234 | 239 |
235 void DesktopNotificationPermissionRequestDone(int callback_context); | 240 void DesktopNotificationPermissionRequestDone(int callback_context); |
236 | 241 |
237 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 242 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
238 // refcount that calls Shutdown when it reaches zero. This allows each | 243 // refcount that calls Shutdown when it reaches zero. This allows each |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 base::TimeTicks send_before_unload_start_time_; | 283 base::TimeTicks send_before_unload_start_time_; |
279 | 284 |
280 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 285 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
281 | 286 |
282 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 287 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
283 }; | 288 }; |
284 | 289 |
285 } // namespace content | 290 } // namespace content |
286 | 291 |
287 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 292 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |