| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Tracks execution context creation. | 23 // Tracks execution context creation. |
| 24 class FrameTracker : public DevToolsEventListener { | 24 class FrameTracker : public DevToolsEventListener { |
| 25 public: | 25 public: |
| 26 explicit FrameTracker(DevToolsClient* client); | 26 explicit FrameTracker(DevToolsClient* client); |
| 27 virtual ~FrameTracker(); | 27 virtual ~FrameTracker(); |
| 28 | 28 |
| 29 Status GetFrameForContextId(int context_id, std::string* frame_id); | 29 Status GetFrameForContextId(int context_id, std::string* frame_id); |
| 30 Status GetContextIdForFrame(const std::string& frame_id, int* context_id); | 30 Status GetContextIdForFrame(const std::string& frame_id, int* context_id); |
| 31 | 31 |
| 32 // Overridden from DevToolsEventListener: | 32 // Overridden from DevToolsEventListener: |
| 33 virtual Status OnConnected(DevToolsClient* client) OVERRIDE; | 33 virtual Status OnConnected(DevToolsClient* client) override; |
| 34 virtual Status OnEvent(DevToolsClient* client, | 34 virtual Status OnEvent(DevToolsClient* client, |
| 35 const std::string& method, | 35 const std::string& method, |
| 36 const base::DictionaryValue& params) OVERRIDE; | 36 const base::DictionaryValue& params) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 std::map<std::string, int> frame_to_context_map_; | 39 std::map<std::string, int> frame_to_context_map_; |
| 40 | 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(FrameTracker); | 41 DISALLOW_COPY_AND_ASSIGN(FrameTracker); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ | 44 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ |
| OLD | NEW |