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

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

Issue 9456037: Adding run_at to chrome.tabs.executeScript/insertCss. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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
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 "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Whether the code is JavaScript or CSS. 61 // Whether the code is JavaScript or CSS.
62 IPC_STRUCT_MEMBER(bool, is_javascript) 62 IPC_STRUCT_MEMBER(bool, is_javascript)
63 63
64 // String of code to execute. 64 // String of code to execute.
65 IPC_STRUCT_MEMBER(std::string, code) 65 IPC_STRUCT_MEMBER(std::string, code)
66 66
67 // Whether to inject into all frames, or only the root frame. 67 // Whether to inject into all frames, or only the root frame.
68 IPC_STRUCT_MEMBER(bool, all_frames) 68 IPC_STRUCT_MEMBER(bool, all_frames)
69 69
70 // When to inject the code.
71 IPC_STRUCT_MEMBER(int, run_at)
72
70 // Whether to execute code in the main world (as opposed to an isolated 73 // Whether to execute code in the main world (as opposed to an isolated
71 // world). 74 // world).
72 IPC_STRUCT_MEMBER(bool, in_main_world) 75 IPC_STRUCT_MEMBER(bool, in_main_world)
73 IPC_STRUCT_END() 76 IPC_STRUCT_END()
74 77
75 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) 78 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
76 IPC_STRUCT_TRAITS_MEMBER(url) 79 IPC_STRUCT_TRAITS_MEMBER(url)
77 IPC_STRUCT_TRAITS_MEMBER(width) 80 IPC_STRUCT_TRAITS_MEMBER(width)
78 IPC_STRUCT_TRAITS_MEMBER(height) 81 IPC_STRUCT_TRAITS_MEMBER(height)
79 IPC_STRUCT_TRAITS_MEMBER(data) 82 IPC_STRUCT_TRAITS_MEMBER(data)
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // Response to the renderer for the above message. 378 // Response to the renderer for the above message.
376 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, 379 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse,
377 std::string /* channel_id */, 380 std::string /* channel_id */,
378 std::string /* error */, 381 std::string /* error */,
379 int32 /* callback_id */) 382 int32 /* callback_id */)
380 383
381 // Deliver a message sent with ExtensionHostMsg_PostMessage. 384 // Deliver a message sent with ExtensionHostMsg_PostMessage.
382 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, 385 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage,
383 int /* target_port_id */, 386 int /* target_port_id */,
384 std::string /* message */) 387 std::string /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698