refactor: use std::string instead of base::string16 for IPC channel names (ipcRenderer.sendTo) (#14302)
This commit is contained in:
Родитель
5f6706ac33
Коммит
2a253c73db
|
@ -2081,7 +2081,7 @@ void WebContents::OnRendererMessageSync(content::RenderFrameHost* frame_host,
|
|||
void WebContents::OnRendererMessageTo(content::RenderFrameHost* frame_host,
|
||||
bool send_to_all,
|
||||
int32_t web_contents_id,
|
||||
const base::string16& channel,
|
||||
const std::string& channel,
|
||||
const base::ListValue& args) {
|
||||
auto* web_contents = mate::TrackableObject<WebContents>::FromWeakMapID(
|
||||
isolate(), web_contents_id);
|
||||
|
|
|
@ -423,7 +423,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
|
|||
void OnRendererMessageTo(content::RenderFrameHost* frame_host,
|
||||
bool send_to_all,
|
||||
int32_t web_contents_id,
|
||||
const base::string16& channel,
|
||||
const std::string& channel,
|
||||
const base::ListValue& args);
|
||||
|
||||
// Called when received a synchronous message from renderer to
|
||||
|
|
|
@ -36,7 +36,7 @@ IPC_SYNC_MESSAGE_ROUTED2_1(AtomFrameHostMsg_Message_Sync,
|
|||
IPC_MESSAGE_ROUTED4(AtomFrameHostMsg_Message_To,
|
||||
bool /* send_to_all */,
|
||||
int32_t /* web_contents_id */,
|
||||
base::string16 /* channel */,
|
||||
std::string /* channel */,
|
||||
base::ListValue /* arguments */)
|
||||
|
||||
IPC_MESSAGE_ROUTED3(AtomFrameMsg_Message,
|
||||
|
|
|
@ -63,7 +63,7 @@ base::ListValue SendSync(mate::Arguments* args,
|
|||
void SendTo(mate::Arguments* args,
|
||||
bool send_to_all,
|
||||
int32_t web_contents_id,
|
||||
const base::string16& channel,
|
||||
const std::string& channel,
|
||||
const base::ListValue& arguments) {
|
||||
RenderFrame* render_frame = GetCurrentRenderFrame();
|
||||
if (render_frame == nullptr)
|
||||
|
|
|
@ -25,7 +25,7 @@ base::ListValue SendSync(mate::Arguments* args,
|
|||
void SendTo(mate::Arguments* args,
|
||||
bool send_to_all,
|
||||
int32_t web_contents_id,
|
||||
const base::string16& channel,
|
||||
const std::string& channel,
|
||||
const base::ListValue& arguments);
|
||||
|
||||
void Initialize(v8::Local<v8::Object> exports,
|
||||
|
|
Загрузка…
Ссылка в новой задаче