Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 BLIMP_ENGINE_TESTING_SESSION_BLIMP_ENGINE_TESTING_SESSION_H_ | |
| 6 #define BLIMP_ENGINE_TESTING_SESSION_BLIMP_ENGINE_TESTING_SESSION_H_ | |
| 7 | |
| 8 #include "blimp/common/proto/blimp_message.pb.h" | |
| 9 #include "blimp/engine/common/blimp_browser_context.h" | |
| 10 #include "blimp/engine/feature/engine_settings_feature.h" | |
| 11 #include "blimp/engine/session/blimp_engine_session.h" | |
| 12 #include "blimp/net/blimp_message_processor.h" | |
| 13 #include "content/public/browser/browser_url_handler.h" | |
|
Kevin M
2017/01/09 20:17:18
Not used?
shenghuazhang
2017/01/10 23:20:50
Done.
| |
| 14 #include "content/public/browser/web_contents_delegate.h" | |
| 15 #include "net/base/completion_callback.h" | |
| 16 | |
| 17 namespace blimp { | |
| 18 namespace engine { | |
| 19 | |
| 20 class BlimpEngineTestingSession : public BlimpEngineSession { | |
|
Kevin M
2017/01/09 20:17:18
nit: This should be implemented as a BlimpMessage
shenghuazhang
2017/01/10 23:20:50
Acknowledged.
| |
| 21 public: | |
| 22 BlimpEngineTestingSession( | |
| 23 std::unique_ptr<BlimpBrowserContext> browser_context, | |
| 24 net::NetLog* net_log, | |
| 25 BlimpEngineConfig* config, | |
| 26 SettingsManager* settings_manager); | |
| 27 ~BlimpEngineTestingSession() = default; | |
| 28 | |
| 29 // Override BlimpEngineSession::BlimpEngineSession | |
| 30 // This object handles NavigationMessage::LOAD_URL | |
| 31 // url rewritting with testing url handler | |
| 32 void ProcessMessage(std::unique_ptr<BlimpMessage> message, | |
| 33 const net::CompletionCallback& callback) override; | |
| 34 }; | |
| 35 | |
| 36 } // namespace engine | |
| 37 } // namespace blimp | |
| 38 | |
| 39 #endif // BLIMP_ENGINE_TESTING_SESSION_BLIMP_ENGINE_TESTING_SESSION_H_ | |
| OLD | NEW |