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" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "chrome/common/search/instant_types.h" | 14 #include "chrome/common/search/instant_types.h" |
15 #include "chrome/common/search/ntp_logging_events.h" | 15 #include "chrome/common/search/ntp_logging_events.h" |
16 #include "chrome/common/web_application_info.h" | 16 #include "chrome/common/web_application_info.h" |
17 #include "components/content_settings/core/common/content_settings.h" | 17 #include "components/content_settings/core/common/content_settings.h" |
18 #include "components/content_settings/core/common/content_settings_pattern.h" | 18 #include "components/content_settings/core/common/content_settings_pattern.h" |
19 #include "components/content_settings/core/common/content_settings_types.h" | 19 #include "components/content_settings/core/common/content_settings_types.h" |
20 #include "components/omnibox/common/omnibox_focus_state.h" | 20 #include "components/omnibox/common/omnibox_focus_state.h" |
21 #include "content/public/common/top_controls_state.h" | 21 #include "content/public/common/top_controls_state.h" |
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 "ppapi/features/features.h" |
26 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" | 27 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm
ptReply.h" |
27 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 28 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
28 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 29 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
29 #include "ui/base/window_open_disposition.h" | 30 #include "ui/base/window_open_disposition.h" |
30 #include "url/gurl.h" | 31 #include "url/gurl.h" |
31 #include "url/ipc/url_param_traits.h" | 32 #include "url/ipc/url_param_traits.h" |
32 #include "url/origin.h" | 33 #include "url/origin.h" |
33 | 34 |
34 // Singly-included section for enums and custom IPC traits. | 35 // Singly-included section for enums and custom IPC traits. |
35 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 36 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows | 422 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
422 // about specific reasons why a plugin can't be used, for example because it's | 423 // about specific reasons why a plugin can't be used, for example because it's |
423 // disabled. | 424 // disabled. |
424 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, | 425 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
425 int /* render_frame_id */, | 426 int /* render_frame_id */, |
426 GURL /* url */, | 427 GURL /* url */, |
427 url::Origin /* main_frame_origin */, | 428 url::Origin /* main_frame_origin */, |
428 std::string /* mime_type */, | 429 std::string /* mime_type */, |
429 ChromeViewHostMsg_GetPluginInfo_Output /* output */) | 430 ChromeViewHostMsg_GetPluginInfo_Output /* output */) |
430 | 431 |
431 #if defined(ENABLE_PEPPER_CDMS) | 432 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
432 // Returns whether any internal plugin supporting |mime_type| is registered and | 433 // Returns whether any internal plugin supporting |mime_type| is registered and |
433 // enabled. Does not determine whether the plugin can actually be instantiated | 434 // enabled. Does not determine whether the plugin can actually be instantiated |
434 // (e.g. whether it has all its dependencies). | 435 // (e.g. whether it has all its dependencies). |
435 // When the returned *|is_available| is true, |additional_param_names| and | 436 // When the returned *|is_available| is true, |additional_param_names| and |
436 // |additional_param_values| contain the name-value pairs, if any, specified | 437 // |additional_param_values| contain the name-value pairs, if any, specified |
437 // for the *first* non-disabled plugin found that is registered for |mime_type|. | 438 // for the *first* non-disabled plugin found that is registered for |mime_type|. |
438 IPC_SYNC_MESSAGE_CONTROL1_3( | 439 IPC_SYNC_MESSAGE_CONTROL1_3( |
439 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType, | 440 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType, |
440 std::string /* mime_type */, | 441 std::string /* mime_type */, |
441 bool /* is_available */, | 442 bool /* is_available */, |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 | 640 |
640 // Record a sample string to a Rappor metric. | 641 // Record a sample string to a Rappor metric. |
641 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 642 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
642 std::string /* metric */, | 643 std::string /* metric */, |
643 std::string /* sample */) | 644 std::string /* sample */) |
644 | 645 |
645 // Record a domain and registry of a url to a Rappor metric. | 646 // Record a domain and registry of a url to a Rappor metric. |
646 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 647 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
647 std::string /* metric */, | 648 std::string /* metric */, |
648 GURL /* sample url */) | 649 GURL /* sample url */) |
OLD | NEW |