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

Side by Side Diff: chrome/browser/debugger/devtools_client_host.h

Issue 5741001: Even more virtual method deinlining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (windows) Created 10 years 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/browser/cookies_tree_model.cc ('k') | chrome/browser/debugger/devtools_client_host.cc » ('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 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_
6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // closing. 34 // closing.
35 virtual void InspectedTabClosing() = 0; 35 virtual void InspectedTabClosing() = 0;
36 36
37 // Sends the message to the devtools client hosted by this object. 37 // Sends the message to the devtools client hosted by this object.
38 virtual void SendMessageToClient(const IPC::Message& msg) = 0; 38 virtual void SendMessageToClient(const IPC::Message& msg) = 0;
39 39
40 void set_close_listener(CloseListener* listener) { 40 void set_close_listener(CloseListener* listener) {
41 close_listener_ = listener; 41 close_listener_ = listener;
42 } 42 }
43 43
44 virtual DevToolsWindow* AsDevToolsWindow() { return NULL; } 44 virtual DevToolsWindow* AsDevToolsWindow();
45 45
46 protected: 46 protected:
47 DevToolsClientHost() : close_listener_(NULL) {} 47 DevToolsClientHost() : close_listener_(NULL) {}
48 48
49 // Should be called when the devtools client is going to die and this 49 // Should be called when the devtools client is going to die and this
50 // DevToolsClientHost should not be used anymore. 50 // DevToolsClientHost should not be used anymore.
51 void NotifyCloseListener() { 51 void NotifyCloseListener();
52 if (close_listener_) {
53 close_listener_->ClientHostClosing(this);
54 close_listener_ = NULL;
55 }
56 }
57 52
58 private: 53 private:
59 CloseListener* close_listener_; 54 CloseListener* close_listener_;
60 DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost); 55 DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost);
61 }; 56 };
62 57
63 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ 58 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/cookies_tree_model.cc ('k') | chrome/browser/debugger/devtools_client_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698