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

Unified Diff: content/worker/webworker_stub.h

Issue 6990059: DevTools: devtools message plumbing between worker and page processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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: content/worker/webworker_stub.h
diff --git a/content/worker/webworker_stub.h b/content/worker/webworker_stub.h
index ff93cddec3b2c528caa0fde81da141b47251a3b9..deb5c969a4399854df44b7a5c79b319ddb1747c0 100644
--- a/content/worker/webworker_stub.h
+++ b/content/worker/webworker_stub.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -6,6 +6,7 @@
#define CONTENT_WORKER_WEBWORKER_STUB_H_
#pragma once
+#include "base/scoped_ptr.h"
Dmitry Titov 2011/05/25 01:38:44 not used.
yurys 2011/05/25 17:28:29 In the new version it is used.
#include "content/worker/webworker_stub_base.h"
#include "content/worker/webworkerclient_proxy.h"
#include "googleurl/src/gurl.h"
@@ -27,6 +28,13 @@ class WebWorkerStub : public WebWorkerStubBase {
virtual const GURL& url() const;
+ class DevToolsDelegate {
+ public:
+ virtual bool OnMessageReceived(const IPC::Message& message) = 0;
+ virtual void WebWorkerStubDestroyed() = 0;
+ };
+ void set_devtools_delegate(DevToolsDelegate*);
+
private:
virtual ~WebWorkerStub();
@@ -37,6 +45,7 @@ class WebWorkerStub : public WebWorkerStubBase {
WebKit::WebWorker* impl_;
GURL url_;
+ DevToolsDelegate* devtools_delegate_;
DISALLOW_COPY_AND_ASSIGN(WebWorkerStub);
};

Powered by Google App Engine
This is Rietveld 408576698