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

Side by Side Diff: webkit/api/public/WebDevToolsFrontend.h

Issue 330029: DevTools: Remove base/ dependencies from glue/devtools (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/renderer/devtools_client.cc ('k') | webkit/api/public/WebDevToolsFrontendClient.h » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 /*
2 // Use of this source code is governed by a BSD-style license that can be 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 // found in the LICENSE file. 3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
13 * distribution.
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
4 30
5 #ifndef WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ 31 #ifndef WebDevToolsFrontend_h
6 #define WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ 32 #define WebDevToolsFrontend_h
7 33
8 #include "base/basictypes.h" 34 #include "WebCommon.h"
9
10 class WebDevToolsClientDelegate;
11 35
12 namespace WebKit { 36 namespace WebKit {
37
38 class WebDevToolsFrontendClient;
13 class WebString; 39 class WebString;
14 class WebView; 40 class WebView;
15 }
16 41
17 // WebDevToolsClient represents DevTools client sitting in the Glue. It provides 42 // WebDevToolsFrontend represents DevTools client sitting in the Glue. It provides
18 // direct and delegate Apis to the host. 43 // direct and delegate Apis to the host.
19 class WebDevToolsClient { 44 class WebDevToolsFrontend {
20 public: 45 public:
21 static WebDevToolsClient* Create( 46 static WebDevToolsFrontend* create(WebView* view,
22 WebKit::WebView* view, 47 WebDevToolsFrontendClient* client,
23 WebDevToolsClientDelegate* delegate, 48 const WebString& applicationLocale);
24 const WebKit::WebString& application_locale);
25 49
26 WebDevToolsClient() {} 50 WebDevToolsFrontend() {}
27 virtual ~WebDevToolsClient() {} 51 virtual ~WebDevToolsFrontend() {}
28 52
29 virtual void DispatchMessageFromAgent(const WebKit::WebString& class_name, 53 virtual void dispatchMessageFromAgent(const WebString& className,
30 const WebKit::WebString& method_name, 54 const WebString& methodName,
31 const WebKit::WebString& param1, 55 const WebString& param1,
32 const WebKit::WebString& param2, 56 const WebString& param2,
33 const WebKit::WebString& param3) = 0; 57 const WebString& param3) = 0;
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(WebDevToolsClient);
37 }; 58 };
38 59
39 #endif // WEBKIT_GLUE_WEBDEVTOOLSCLIENT_H_ 60 } // namespace WebKit
61
62 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/devtools_client.cc ('k') | webkit/api/public/WebDevToolsFrontendClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698