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

Side by Side Diff: content/browser/tcmalloc_internals_request_job.h

Issue 10855209: Refactoring: ProtocolHandler::MaybeCreateJob takes NetworkDelegate as argument (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest merge Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_ 5 #ifndef CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_
6 #define CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_ 6 #define CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_
7 7
8 #include <map> 8 #include <map>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 30 matching lines...) Expand all
41 typedef std::map<std::string, std::string> AboutTcmallocOutputsType; 41 typedef std::map<std::string, std::string> AboutTcmallocOutputsType;
42 AboutTcmallocOutputsType outputs_; 42 AboutTcmallocOutputsType outputs_;
43 43
44 friend struct DefaultSingletonTraits<AboutTcmallocOutputs>; 44 friend struct DefaultSingletonTraits<AboutTcmallocOutputs>;
45 45
46 DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs); 46 DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs);
47 }; 47 };
48 48
49 class TcmallocInternalsRequestJob : public net::URLRequestSimpleJob { 49 class TcmallocInternalsRequestJob : public net::URLRequestSimpleJob {
50 public: 50 public:
51 explicit TcmallocInternalsRequestJob(net::URLRequest* request); 51 TcmallocInternalsRequestJob(net::URLRequest* request,
52 net::NetworkDelegate* network_delegate);
52 53
53 virtual int GetData(std::string* mime_type, 54 virtual int GetData(std::string* mime_type,
54 std::string* charset, 55 std::string* charset,
55 std::string* data, 56 std::string* data,
56 const net::CompletionCallback& callback) const OVERRIDE; 57 const net::CompletionCallback& callback) const OVERRIDE;
57 58
58 protected: 59 protected:
59 virtual ~TcmallocInternalsRequestJob() {} 60 virtual ~TcmallocInternalsRequestJob() {}
60 61
61 private: 62 private:
62 DISALLOW_IMPLICIT_CONSTRUCTORS(TcmallocInternalsRequestJob); 63 DISALLOW_IMPLICIT_CONSTRUCTORS(TcmallocInternalsRequestJob);
63 }; 64 };
64 65
65 } // namespace content 66 } // namespace content
66 67
67 #endif // CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_ 68 #endif // CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/browser/tcmalloc_internals_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698