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

Side by Side Diff: content/common/devtools_messages.h

Issue 10534147: Allow platform apps to open links in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 8 years, 6 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 // Developer tools consist of the following parts: 5 // Developer tools consist of the following parts:
6 // 6 //
7 // DevToolsAgent lives in the renderer of an inspected page and provides access 7 // DevToolsAgent lives in the renderer of an inspected page and provides access
8 // to the pages resources, DOM, v8 etc. by means of IPC messages. 8 // to the pages resources, DOM, v8 etc. by means of IPC messages.
9 // 9 //
10 // DevToolsClient is a thin delegate that lives in the tools front-end 10 // DevToolsClient is a thin delegate that lives in the tools front-end
(...skipping 25 matching lines...) Expand all
36 // | (inspected page renderer process) | 36 // | (inspected page renderer process) |
37 // ----------------------------------- 37 // -----------------------------------
38 // 38 //
39 // This file describes developer tools message types. 39 // This file describes developer tools message types.
40 40
41 // Multiply-included message file, no standard include guard. 41 // Multiply-included message file, no standard include guard.
42 #include <map> 42 #include <map>
43 #include <string> 43 #include <string>
44 44
45 #include "content/common/content_export.h" 45 #include "content/common/content_export.h"
46 #include "content/public/common/common_param_traits.h"
46 #include "content/public/common/console_message_level.h" 47 #include "content/public/common/console_message_level.h"
47 #include "ipc/ipc_message_macros.h" 48 #include "ipc/ipc_message_macros.h"
48 49
49 #undef IPC_MESSAGE_EXPORT 50 #undef IPC_MESSAGE_EXPORT
50 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 51 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
51 52
52 #define IPC_MESSAGE_START DevToolsMsgStart 53 #define IPC_MESSAGE_START DevToolsMsgStart
53 54
54 // Singly-included section since need custom serialization.
55 #ifndef CONTENT_COMMON_DEVTOOLS_MESSAGES_H_
56 #define CONTENT_COMMON_DEVTOOLS_MESSAGES_H_
57
58 namespace IPC {
59
60 template<>
61 struct ParamTraits<content::ConsoleMessageLevel> {
62 typedef content::ConsoleMessageLevel param_type;
63 static void Write(Message* m, const param_type& p);
64 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
65 static void Log(const param_type& p, std::string* l);
66 };
67
68 } // namespace IPC
69
70 #endif // CONTENT_COMMON_DEVTOOLS_MESSAGES_H_
71
72 // These are messages sent from DevToolsAgent to DevToolsClient through the 55 // These are messages sent from DevToolsAgent to DevToolsClient through the
73 // browser. 56 // browser.
74 // WebKit-level transport. 57 // WebKit-level transport.
75 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend, 58 IPC_MESSAGE_ROUTED1(DevToolsClientMsg_DispatchOnInspectorFrontend,
76 std::string /* message */) 59 std::string /* message */)
77 60
78 //----------------------------------------------------------------------------- 61 //-----------------------------------------------------------------------------
79 // These are messages sent from DevToolsClient to DevToolsAgent through the 62 // These are messages sent from DevToolsClient to DevToolsAgent through the
80 // browser. 63 // browser.
81 // Tells agent that there is a client host connected to it. 64 // Tells agent that there is a client host connected to it.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Clears browser cache. 152 // Clears browser cache.
170 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) 153 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache)
171 154
172 // Clears browser cookies. 155 // Clears browser cookies.
173 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) 156 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies)
174 157
175 158
176 //----------------------------------------------------------------------------- 159 //-----------------------------------------------------------------------------
177 // These are messages sent from the inspected page renderer to the worker 160 // These are messages sent from the inspected page renderer to the worker
178 // renderer. 161 // renderer.
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/open_link/test.js ('k') | content/common/devtools_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698