Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: chrome/common/extensions/extension_messages.h

Issue 13375017: Move the ViewType enum to extensions\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // IPC messages for extensions. 5 // IPC messages for extensions.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "chrome/common/extensions/extension.h"
14 #include "chrome/common/extensions/permissions/bluetooth_device_permission_data. h" 14 #include "chrome/common/extensions/permissions/bluetooth_device_permission_data. h"
15 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h " 15 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h "
16 #include "chrome/common/extensions/permissions/permission_set.h" 16 #include "chrome/common/extensions/permissions/permission_set.h"
17 #include "chrome/common/extensions/permissions/socket_permission_data.h" 17 #include "chrome/common/extensions/permissions/socket_permission_data.h"
18 #include "chrome/common/extensions/permissions/usb_device_permission_data.h" 18 #include "chrome/common/extensions/permissions/usb_device_permission_data.h"
19 #include "chrome/common/view_type.h"
20 #include "chrome/common/web_apps.h" 19 #include "chrome/common/web_apps.h"
21 #include "content/public/common/common_param_traits.h" 20 #include "content/public/common/common_param_traits.h"
22 #include "content/public/common/socket_permission_request.h" 21 #include "content/public/common/socket_permission_request.h"
23 #include "extensions/common/draggable_region.h" 22 #include "extensions/common/draggable_region.h"
24 #include "extensions/common/url_pattern.h" 23 #include "extensions/common/url_pattern.h"
25 #include "extensions/common/url_pattern_set.h" 24 #include "extensions/common/url_pattern_set.h"
25 #include "extensions/common/view_type.h"
26 #include "googleurl/src/gurl.h" 26 #include "googleurl/src/gurl.h"
27 #include "ipc/ipc_message_macros.h" 27 #include "ipc/ipc_message_macros.h"
28 28
29 #define IPC_MESSAGE_START ExtensionMsgStart 29 #define IPC_MESSAGE_START ExtensionMsgStart
30 30
31 IPC_ENUM_TRAITS(chrome::ViewType) 31 IPC_ENUM_TRAITS(extensions::ViewType)
32 32
33 // Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog. 33 // Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog.
34 IPC_STRUCT_BEGIN(ExtensionHostMsg_APIAction_Params) 34 IPC_STRUCT_BEGIN(ExtensionHostMsg_APIAction_Params)
35 // API name. 35 // API name.
36 IPC_STRUCT_MEMBER(std::string, api_call) 36 IPC_STRUCT_MEMBER(std::string, api_call)
37 37
38 // List of arguments. 38 // List of arguments.
39 IPC_STRUCT_MEMBER(ListValue, arguments) 39 IPC_STRUCT_MEMBER(ListValue, arguments)
40 40
41 // Extra logging information. 41 // Extra logging information.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 std::string /* extension_id */, 350 std::string /* extension_id */,
351 extensions::URLPatternSet /* hosts */) 351 extensions::URLPatternSet /* hosts */)
352 352
353 // Tell the renderer to clear tab-specific permissions for some extensions. 353 // Tell the renderer to clear tab-specific permissions for some extensions.
354 IPC_MESSAGE_CONTROL2(ExtensionMsg_ClearTabSpecificPermissions, 354 IPC_MESSAGE_CONTROL2(ExtensionMsg_ClearTabSpecificPermissions,
355 int /* tab_id */, 355 int /* tab_id */,
356 std::vector<std::string> /* extension_ids */) 356 std::vector<std::string> /* extension_ids */)
357 357
358 // Tell the renderer which type this view is. 358 // Tell the renderer which type this view is.
359 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType, 359 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType,
360 chrome::ViewType /* view_type */) 360 extensions::ViewType /* view_type */)
361 361
362 // Deliver a message sent with ExtensionHostMsg_PostMessage. 362 // Deliver a message sent with ExtensionHostMsg_PostMessage.
363 IPC_MESSAGE_CONTROL3(ExtensionMsg_UsingWebRequestAPI, 363 IPC_MESSAGE_CONTROL3(ExtensionMsg_UsingWebRequestAPI,
364 bool /* adblock */, 364 bool /* adblock */,
365 bool /* adblock_plus */, 365 bool /* adblock_plus */,
366 bool /* other_webrequest */) 366 bool /* other_webrequest */)
367 367
368 // Ask the lazy background page if it is ready to be suspended. This is sent 368 // Ask the lazy background page if it is ready to be suspended. This is sent
369 // when the page is considered idle. The renderer will reply with the same 369 // when the page is considered idle. The renderer will reply with the same
370 // sequence_id so that we can tell which message it is responding to. 370 // sequence_id so that we can tell which message it is responding to.
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 // Notifies the browser process that a tab has started or stopped matching 613 // Notifies the browser process that a tab has started or stopped matching
614 // certain conditions. This message is sent in response to several events: 614 // certain conditions. This message is sent in response to several events:
615 // 615 //
616 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 616 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
617 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. 617 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
618 // Currently this only fires for the main frame. 618 // Currently this only fires for the main frame.
619 // * Something changed on an existing frame causing the set of matching searches 619 // * Something changed on an existing frame causing the set of matching searches
620 // to change. 620 // to change.
621 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 621 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
622 std::vector<std::string> /* Matching CSS selectors */) 622 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698