OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "net/base/load_states.h" | 27 #include "net/base/load_states.h" |
28 #include "ui/gfx/rect_f.h" | 28 #include "ui/gfx/rect_f.h" |
29 #include "ui/gfx/size.h" | 29 #include "ui/gfx/size.h" |
30 #include "webkit/glue/resource_type.h" | 30 #include "webkit/glue/resource_type.h" |
31 | 31 |
32 struct BrowserPluginHostMsg_CreateGuest_Params; | 32 struct BrowserPluginHostMsg_CreateGuest_Params; |
33 struct BrowserPluginHostMsg_ResizeGuest_Params; | 33 struct BrowserPluginHostMsg_ResizeGuest_Params; |
34 struct ViewHostMsg_DateTimeDialogValue_Params; | 34 struct ViewHostMsg_DateTimeDialogValue_Params; |
35 struct ViewMsg_PostMessage_Params; | 35 struct ViewMsg_PostMessage_Params; |
36 | 36 |
37 namespace webkit_glue { | |
38 struct WebIntentData; | |
39 struct WebIntentServiceData; | |
40 } | |
41 | |
42 namespace content { | 37 namespace content { |
43 class BrowserPluginEmbedder; | 38 class BrowserPluginEmbedder; |
44 class BrowserPluginGuest; | 39 class BrowserPluginGuest; |
45 class ColorChooser; | 40 class ColorChooser; |
46 class DateTimeChooserAndroid; | 41 class DateTimeChooserAndroid; |
47 class DownloadItem; | 42 class DownloadItem; |
48 class InterstitialPageImpl; | 43 class InterstitialPageImpl; |
49 class JavaBridgeDispatcherHostManager; | 44 class JavaBridgeDispatcherHostManager; |
50 class JavaScriptDialogManager; | 45 class JavaScriptDialogManager; |
51 class RenderViewHost; | 46 class RenderViewHost; |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 void OnDialogClosed(RenderViewHost* rvh, | 508 void OnDialogClosed(RenderViewHost* rvh, |
514 IPC::Message* reply_msg, | 509 IPC::Message* reply_msg, |
515 bool success, | 510 bool success, |
516 const string16& user_input); | 511 const string16& user_input); |
517 | 512 |
518 // Callback function when requesting permission to access the PPAPI broker. | 513 // Callback function when requesting permission to access the PPAPI broker. |
519 // |result| is true if permission was granted. | 514 // |result| is true if permission was granted. |
520 void OnPpapiBrokerPermissionResult(int request_id, bool result); | 515 void OnPpapiBrokerPermissionResult(int request_id, bool result); |
521 | 516 |
522 // IPC message handlers. | 517 // IPC message handlers. |
523 #if defined(ENABLE_WEB_INTENTS) | |
524 void OnRegisterIntentService(const webkit_glue::WebIntentServiceData& data, | |
525 bool user_gesture); | |
526 void OnWebIntentDispatch(const webkit_glue::WebIntentData& intent, | |
527 int intent_id); | |
528 #endif | |
529 void OnDidLoadResourceFromMemoryCache(const GURL& url, | 518 void OnDidLoadResourceFromMemoryCache(const GURL& url, |
530 const std::string& security_info, | 519 const std::string& security_info, |
531 const std::string& http_request, | 520 const std::string& http_request, |
532 const std::string& mime_type, | 521 const std::string& mime_type, |
533 ResourceType::Type resource_type); | 522 ResourceType::Type resource_type); |
534 void OnDidDisplayInsecureContent(); | 523 void OnDidDisplayInsecureContent(); |
535 void OnDidRunInsecureContent(const std::string& security_origin, | 524 void OnDidRunInsecureContent(const std::string& security_origin, |
536 const GURL& target_url); | 525 const GURL& target_url); |
537 void OnDocumentLoadedInFrame(int64 frame_id); | 526 void OnDocumentLoadedInFrame(int64 frame_id); |
538 void OnDidFinishLoad(int64 frame_id, | 527 void OnDidFinishLoad(int64 frame_id, |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 // Maps the ids of pending favicon downloads to their callbacks | 888 // Maps the ids of pending favicon downloads to their callbacks |
900 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 889 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
901 FaviconDownloadMap favicon_download_map_; | 890 FaviconDownloadMap favicon_download_map_; |
902 | 891 |
903 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 892 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
904 }; | 893 }; |
905 | 894 |
906 } // namespace content | 895 } // namespace content |
907 | 896 |
908 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 897 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |