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

Side by Side Diff: chrome/renderer/extensions/tabs_custom_bindings.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 #include "chrome/renderer/extensions/tabs_custom_bindings.h" 5 #include "chrome/renderer/extensions/tabs_custom_bindings.h"
6 6
7 #include <stdint.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "content/public/renderer/render_frame.h" 12 #include "content/public/renderer/render_frame.h"
11 #include "extensions/common/extension_messages.h" 13 #include "extensions/common/extension_messages.h"
12 #include "extensions/renderer/script_context.h" 14 #include "extensions/renderer/script_context.h"
13 #include "v8/include/v8.h" 15 #include "v8/include/v8.h"
14 16
15 namespace extensions { 17 namespace extensions {
16 18
(...skipping 28 matching lines...) Expand all
45 info.frame_id = args[1]->Int32Value(); 47 info.frame_id = args[1]->Int32Value();
46 std::string extension_id = *v8::String::Utf8Value(args[2]); 48 std::string extension_id = *v8::String::Utf8Value(args[2]);
47 std::string channel_name = *v8::String::Utf8Value(args[3]); 49 std::string channel_name = *v8::String::Utf8Value(args[3]);
48 int port_id = -1; 50 int port_id = -1;
49 render_frame->Send(new ExtensionHostMsg_OpenChannelToTab( 51 render_frame->Send(new ExtensionHostMsg_OpenChannelToTab(
50 info, extension_id, channel_name, &port_id)); 52 info, extension_id, channel_name, &port_id));
51 args.GetReturnValue().Set(static_cast<int32_t>(port_id)); 53 args.GetReturnValue().Set(static_cast<int32_t>(port_id));
52 } 54 }
53 55
54 } // namespace extensions 56 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/sync_file_system_custom_bindings.h ('k') | chrome/renderer/extensions/webstore_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698