OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 explicit TcmallocInternalsRequestJob(net::URLRequest* request); |
52 | 52 |
53 virtual bool GetData(std::string* mime_type, | 53 virtual int GetData(std::string* mime_type, |
54 std::string* charset, | 54 std::string* charset, |
55 std::string* data) const OVERRIDE; | 55 std::string* data, |
| 56 const net::CompletionCallback& callback) const OVERRIDE; |
56 | 57 |
57 protected: | 58 protected: |
58 virtual ~TcmallocInternalsRequestJob() {} | 59 virtual ~TcmallocInternalsRequestJob() {} |
59 | 60 |
60 private: | 61 private: |
61 DISALLOW_IMPLICIT_CONSTRUCTORS(TcmallocInternalsRequestJob); | 62 DISALLOW_IMPLICIT_CONSTRUCTORS(TcmallocInternalsRequestJob); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace content | 65 } // namespace content |
65 | 66 |
66 #endif // CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_ | 67 #endif // CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_ |
OLD | NEW |