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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/public/common/webplugininfo.h" | 22 #include "content/public/common/webplugininfo.h" |
23 #include "ipc/ipc_channel_handle.h" | 23 #include "ipc/ipc_channel_handle.h" |
24 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
25 #include "ipc/ipc_platform_file.h" | 25 #include "ipc/ipc_platform_file.h" |
26 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" | 26 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" |
27 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 27 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
28 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 28 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
29 #include "ui/base/window_open_disposition.h" | 29 #include "ui/base/window_open_disposition.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 #include "url/ipc/url_param_traits.h" | 31 #include "url/ipc/url_param_traits.h" |
| 32 #include "url/origin.h" |
32 | 33 |
33 // Singly-included section for enums and custom IPC traits. | 34 // Singly-included section for enums and custom IPC traits. |
34 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 35 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
35 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 36 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
36 | 37 |
37 // These are only used internally, so the order does not matter. | 38 // These are only used internally, so the order does not matter. |
38 enum class ChromeViewHostMsg_GetPluginInfo_Status { | 39 enum class ChromeViewHostMsg_GetPluginInfo_Status { |
39 kAllowed, | 40 kAllowed, |
40 kBlocked, | 41 kBlocked, |
41 kBlockedByPolicy, | 42 kBlockedByPolicy, |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 base::string16 /* database name */, | 417 base::string16 /* database name */, |
417 bool /* allowed */) | 418 bool /* allowed */) |
418 | 419 |
419 // Return information about a plugin for the given URL and MIME type. | 420 // Return information about a plugin for the given URL and MIME type. |
420 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows | 421 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
421 // about specific reasons why a plugin can't be used, for example because it's | 422 // about specific reasons why a plugin can't be used, for example because it's |
422 // disabled. | 423 // disabled. |
423 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, | 424 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
424 int /* render_frame_id */, | 425 int /* render_frame_id */, |
425 GURL /* url */, | 426 GURL /* url */, |
426 GURL /* top origin url */, | 427 url::Origin /* main_frame_origin */, |
427 std::string /* mime_type */, | 428 std::string /* mime_type */, |
428 ChromeViewHostMsg_GetPluginInfo_Output /* output */) | 429 ChromeViewHostMsg_GetPluginInfo_Output /* output */) |
429 | 430 |
430 #if defined(ENABLE_PEPPER_CDMS) | 431 #if defined(ENABLE_PEPPER_CDMS) |
431 // Returns whether any internal plugin supporting |mime_type| is registered and | 432 // Returns whether any internal plugin supporting |mime_type| is registered and |
432 // enabled. Does not determine whether the plugin can actually be instantiated | 433 // enabled. Does not determine whether the plugin can actually be instantiated |
433 // (e.g. whether it has all its dependencies). | 434 // (e.g. whether it has all its dependencies). |
434 // When the returned *|is_available| is true, |additional_param_names| and | 435 // When the returned *|is_available| is true, |additional_param_names| and |
435 // |additional_param_values| contain the name-value pairs, if any, specified | 436 // |additional_param_values| contain the name-value pairs, if any, specified |
436 // for the *first* non-disabled plugin found that is registered for |mime_type|. | 437 // for the *first* non-disabled plugin found that is registered for |mime_type|. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 | 639 |
639 // Record a sample string to a Rappor metric. | 640 // Record a sample string to a Rappor metric. |
640 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 641 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
641 std::string /* metric */, | 642 std::string /* metric */, |
642 std::string /* sample */) | 643 std::string /* sample */) |
643 | 644 |
644 // Record a domain and registry of a url to a Rappor metric. | 645 // Record a domain and registry of a url to a Rappor metric. |
645 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 646 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
646 std::string /* metric */, | 647 std::string /* metric */, |
647 GURL /* sample url */) | 648 GURL /* sample url */) |
OLD | NEW |