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

Unified Diff: chrome/renderer/extensions/experimental.socket_custom_bindings.cc

Issue 10273016: Refactor the socket API to remove onEvent callback in socket.create() function. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/experimental.socket_custom_bindings.cc
diff --git a/chrome/renderer/extensions/experimental.socket_custom_bindings.cc b/chrome/renderer/extensions/experimental.socket_custom_bindings.cc
deleted file mode 100644
index 8dd096bc22ba491f34e066ee864cd10cdbd24019..0000000000000000000000000000000000000000
--- a/chrome/renderer/extensions/experimental.socket_custom_bindings.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/renderer/extensions/experimental.socket_custom_bindings.h"
-
-#include <string>
-
-#include "chrome/common/extensions/extension_action.h"
-#include "chrome/renderer/extensions/extension_dispatcher.h"
-#include "grit/renderer_resources.h"
-#include "v8/include/v8.h"
-
-namespace {
-
-v8::Handle<v8::Value> GetNextSocketEventId(const v8::Arguments& args) {
- // Note: this works because the socket API only works in the extension
- // process, not content scripts.
- static int next_event_id = 1;
- return v8::Integer::New(next_event_id++);
-}
-
-} // namespace
-
-namespace extensions {
-
-ExperimentalSocketCustomBindings::ExperimentalSocketCustomBindings()
- : ChromeV8Extension(NULL) {
- RouteStaticFunction("GetNextSocketEventId", &GetNextSocketEventId);
-}
-
-} // extensions
« no previous file with comments | « chrome/renderer/extensions/experimental.socket_custom_bindings.h ('k') | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698