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/omnibox/common/omnibox_focus_state.h" | 19 #include "components/omnibox/common/omnibox_focus_state.h" |
20 #include "content/public/common/top_controls_state.h" | 20 #include "content/public/common/top_controls_state.h" |
21 #include "content/public/common/webplugininfo.h" | 21 #include "content/public/common/webplugininfo.h" |
22 #include "ipc/ipc_channel_handle.h" | 22 #include "ipc/ipc_channel_handle.h" |
23 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
24 #include "ipc/ipc_platform_file.h" | 24 #include "ipc/ipc_platform_file.h" |
25 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h" | 25 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerProm ptReply.h" |
26 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 26 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
27 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 27 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
28 #include "ui/base/window_open_disposition.h" | 28 #include "ui/base/window_open_disposition.h" |
29 #include "url/ipc/url_param_traits.h" | 29 #include "url/ipc/url_param_traits.h" |
30 #include "url/origin.h" | |
30 | 31 |
31 // Singly-included section for enums and custom IPC traits. | 32 // Singly-included section for enums and custom IPC traits. |
32 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 33 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
33 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 34 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
34 | 35 |
35 // These are only used internally, so the order does not matter. | 36 // These are only used internally, so the order does not matter. |
36 enum class ChromeViewHostMsg_GetPluginInfo_Status { | 37 enum class ChromeViewHostMsg_GetPluginInfo_Status { |
37 kAllowed, | 38 kAllowed, |
38 kBlocked, | 39 kBlocked, |
39 kBlockedByPolicy, | 40 kBlockedByPolicy, |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
349 GURL /* top origin url */, | 350 GURL /* top origin url */, |
350 bool /* allowed */) | 351 bool /* allowed */) |
351 | 352 |
352 // Return information about a plugin for the given URL and MIME type. | 353 // Return information about a plugin for the given URL and MIME type. |
353 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows | 354 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
354 // about specific reasons why a plugin can't be used, for example because it's | 355 // about specific reasons why a plugin can't be used, for example because it's |
355 // disabled. | 356 // disabled. |
356 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, | 357 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
357 int /* render_frame_id */, | 358 int /* render_frame_id */, |
358 GURL /* url */, | 359 GURL /* url */, |
359 GURL /* top origin url */, | 360 url::Origin /* top origin url */, |
nasko
2016/09/30 20:38:48
nit: Drop the "url" part of the comment, as it is
tommycli
2016/09/30 21:20:41
Done.
| |
360 std::string /* mime_type */, | 361 std::string /* mime_type */, |
361 ChromeViewHostMsg_GetPluginInfo_Output /* output */) | 362 ChromeViewHostMsg_GetPluginInfo_Output /* output */) |
362 | 363 |
363 #if defined(ENABLE_PEPPER_CDMS) | 364 #if defined(ENABLE_PEPPER_CDMS) |
364 // Returns whether any internal plugin supporting |mime_type| is registered and | 365 // Returns whether any internal plugin supporting |mime_type| is registered and |
365 // enabled. Does not determine whether the plugin can actually be instantiated | 366 // enabled. Does not determine whether the plugin can actually be instantiated |
366 // (e.g. whether it has all its dependencies). | 367 // (e.g. whether it has all its dependencies). |
367 // When the returned *|is_available| is true, |additional_param_names| and | 368 // When the returned *|is_available| is true, |additional_param_names| and |
368 // |additional_param_values| contain the name-value pairs, if any, specified | 369 // |additional_param_values| contain the name-value pairs, if any, specified |
369 // for the *first* non-disabled plugin found that is registered for |mime_type|. | 370 // for the *first* non-disabled plugin found that is registered for |mime_type|. |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
567 | 568 |
568 // Record a sample string to a Rappor metric. | 569 // Record a sample string to a Rappor metric. |
569 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 570 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
570 std::string /* metric */, | 571 std::string /* metric */, |
571 std::string /* sample */) | 572 std::string /* sample */) |
572 | 573 |
573 // Record a domain and registry of a url to a Rappor metric. | 574 // Record a domain and registry of a url to a Rappor metric. |
574 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 575 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
575 std::string /* metric */, | 576 std::string /* metric */, |
576 GURL /* sample url */) | 577 GURL /* sample url */) |
OLD | NEW |