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

Side by Side Diff: ipc/ipc_logging.h

Issue 7541054: ipc: remove an unused function prototype (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ok Created 9 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef IPC_IPC_LOGGING_H_ 5 #ifndef IPC_IPC_LOGGING_H_
6 #define IPC_IPC_LOGGING_H_ 6 #define IPC_IPC_LOGGING_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. 9 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Called in the browser process when logging data from a child process is 63 // Called in the browser process when logging data from a child process is
64 // received. 64 // received.
65 void OnReceivedLoggingMessage(const Message& message); 65 void OnReceivedLoggingMessage(const Message& message);
66 66
67 void OnSendMessage(Message* message, const std::string& channel_id); 67 void OnSendMessage(Message* message, const std::string& channel_id);
68 void OnPreDispatchMessage(const Message& message); 68 void OnPreDispatchMessage(const Message& message);
69 void OnPostDispatchMessage(const Message& message, 69 void OnPostDispatchMessage(const Message& message,
70 const std::string& channel_id); 70 const std::string& channel_id);
71 71
72 // Returns the name of the logging enabled/disabled events so that the
73 // sandbox can add them to to the policy. If true, gets the name of the
74 // enabled event, if false, gets the name of the disabled event.
75 static std::wstring GetEventName(bool enabled);
76
77 // Like the *MsgLog functions declared for each message class, except this 72 // Like the *MsgLog functions declared for each message class, except this
78 // calls the correct one based on the message type automatically. Defined in 73 // calls the correct one based on the message type automatically. Defined in
79 // ipc_logging.cc. 74 // ipc_logging.cc.
80 static void GetMessageText(uint32 type, std::string* name, 75 static void GetMessageText(uint32 type, std::string* name,
81 const Message* message, std::string* params); 76 const Message* message, std::string* params);
82 77
83 static void set_log_function_map(LogFunctionMap* functions) { 78 static void set_log_function_map(LogFunctionMap* functions) {
84 log_function_map_ = functions; 79 log_function_map_ = functions;
85 } 80 }
86 81
(...skipping 20 matching lines...) Expand all
107 Consumer* consumer_; 102 Consumer* consumer_;
108 103
109 static LogFunctionMap* log_function_map_; 104 static LogFunctionMap* log_function_map_;
110 }; 105 };
111 106
112 } // namespace IPC 107 } // namespace IPC
113 108
114 #endif // IPC_MESSAGE_LOG_ENABLED 109 #endif // IPC_MESSAGE_LOG_ENABLED
115 110
116 #endif // IPC_IPC_LOGGING_H_ 111 #endif // IPC_IPC_LOGGING_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698