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 3 // found in the LICENSE file. 4 5 #ifndef NET_FLIP_FLIP_TRANSACTION_FACTORY_H__ 6 #define NET_FLIP_FLIP_TRANSACTION_FACTORY_H__ 7 8 #include "net/flip/flip_network_transaction.h" 9 #include "net/http/http_transaction_factory.h" 10 11 namespace net { 12 13 class FlipTransactionFactory : public HttpTransactionFactory { 14 public: FlipTransactionFactory(HttpNetworkSession * session)15 explicit FlipTransactionFactory(HttpNetworkSession* session) 16 : session_(session) { 17 } ~FlipTransactionFactory()18 virtual ~FlipTransactionFactory() {} 19 20 // HttpTransactionFactory Interface. CreateTransaction()21 virtual HttpTransaction* CreateTransaction() { 22 return new FlipNetworkTransaction(session_); 23 } GetCache()24 virtual HttpCache* GetCache() { 25 return NULL; 26 } Suspend(bool suspend)27 virtual void Suspend(bool suspend) { 28 } 29 30 private: 31 scoped_refptr<HttpNetworkSession> session_; 32 }; 33 34 } // namespace net 35 36 #endif // NET_FLIP_FLIP_TRANSACTION_FACTORY_H__ 37