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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_NETLOG_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_
6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Must be called on the IO thread. May return NULL if no observers 60 // Must be called on the IO thread. May return NULL if no observers
61 // are active. 61 // are active.
62 static DevToolsNetLogObserver* GetInstance(); 62 static DevToolsNetLogObserver* GetInstance();
63 static void PopulateResponseInfo(net::URLRequest*, ResourceResponse*); 63 static void PopulateResponseInfo(net::URLRequest*, ResourceResponse*);
64 static int GetAndResetEncodedDataLength(net::URLRequest* request); 64 static int GetAndResetEncodedDataLength(net::URLRequest* request);
65 65
66 private: 66 private:
67 static DevToolsNetLogObserver* instance_; 67 static DevToolsNetLogObserver* instance_;
68 68
69 explicit DevToolsNetLogObserver(ChromeNetLog* chrome_net_log); 69 explicit DevToolsNetLogObserver(ChromeNetLog* chrome_net_log);
70 ~DevToolsNetLogObserver(); 70 virtual ~DevToolsNetLogObserver();
71 71
72 ResourceInfo* GetResourceInfo(uint32 id); 72 ResourceInfo* GetResourceInfo(uint32 id);
73 73
74 ChromeNetLog* chrome_net_log_; 74 ChromeNetLog* chrome_net_log_;
75 typedef base::hash_map<uint32, scoped_refptr<ResourceInfo> > RequestToInfoMap; 75 typedef base::hash_map<uint32, scoped_refptr<ResourceInfo> > RequestToInfoMap;
76 typedef base::hash_map<uint32, int> RequestToEncodedDataLengthMap; 76 typedef base::hash_map<uint32, int> RequestToEncodedDataLengthMap;
77 typedef base::hash_map<uint32, uint32> HTTPStreamJobToSocketMap; 77 typedef base::hash_map<uint32, uint32> HTTPStreamJobToSocketMap;
78 typedef base::hash_map<uint32, uint32> SocketToRequestMap; 78 typedef base::hash_map<uint32, uint32> SocketToRequestMap;
79 RequestToInfoMap request_to_info_; 79 RequestToInfoMap request_to_info_;
80 RequestToEncodedDataLengthMap request_to_encoded_data_length_; 80 RequestToEncodedDataLengthMap request_to_encoded_data_length_;
81 HTTPStreamJobToSocketMap http_stream_job_to_socket_; 81 HTTPStreamJobToSocketMap http_stream_job_to_socket_;
82 SocketToRequestMap socket_to_request_; 82 SocketToRequestMap socket_to_request_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(DevToolsNetLogObserver); 84 DISALLOW_COPY_AND_ASSIGN(DevToolsNetLogObserver);
85 }; 85 };
86 86
87 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_ 87 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_NETLOG_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/debugger/browser_list_tabcontents_provider.h ('k') | chrome/browser/debugger/inspectable_tab_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698