| OLD | NEW |
| 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 NET_TOOLS_FLIP_SERVER_MEM_CACHE_H_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_MEM_CACHE_H_ |
| 6 #define NET_TOOLS_FLIP_SERVER_MEM_CACHE_H_ | 6 #define NET_TOOLS_FLIP_SERVER_MEM_CACHE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "net/tools/flip_server/balsa_headers.h" | 13 #include "net/tools/balsa/balsa_headers.h" |
| 14 #include "net/tools/flip_server/balsa_visitor_interface.h" | 14 #include "net/tools/balsa/balsa_visitor_interface.h" |
| 15 #include "net/tools/flip_server/constants.h" | 15 #include "net/tools/flip_server/constants.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 class StoreBodyAndHeadersVisitor: public BalsaVisitorInterface { | 19 class StoreBodyAndHeadersVisitor: public BalsaVisitorInterface { |
| 20 public: | 20 public: |
| 21 void HandleError() { error_ = true; } | 21 void HandleError() { error_ = true; } |
| 22 | 22 |
| 23 // BalsaVisitorInterface: | 23 // BalsaVisitorInterface: |
| 24 virtual void ProcessBodyInput(const char *input, size_t size) OVERRIDE {} | 24 virtual void ProcessBodyInput(const char *input, size_t size) OVERRIDE {} |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 class NotifierInterface { | 151 class NotifierInterface { |
| 152 public: | 152 public: |
| 153 virtual ~NotifierInterface() {} | 153 virtual ~NotifierInterface() {} |
| 154 virtual void Notify() = 0; | 154 virtual void Notify() = 0; |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace net | 157 } // namespace net |
| 158 | 158 |
| 159 #endif // NET_TOOLS_FLIP_SERVER_MEM_CACHE_H_ | 159 #endif // NET_TOOLS_FLIP_SERVER_MEM_CACHE_H_ |
| OLD | NEW |