| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 GIN_RUNNER_H_ | 5 #ifndef GIN_RUNNER_H_ |
| 6 #define GIN_RUNNER_H_ | 6 #define GIN_RUNNER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 11 #include "gin/gin_export.h" | 12 #include "gin/gin_export.h" |
| 12 #include "gin/public/context_holder.h" | 13 #include "gin/public/context_holder.h" |
| 13 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
| 14 | 15 |
| 15 namespace gin { | 16 namespace gin { |
| 16 | 17 |
| 17 // Runner is responsible for running code in a v8::Context. | 18 // Runner is responsible for running code in a v8::Context. |
| 18 class GIN_EXPORT Runner { | 19 class GIN_EXPORT Runner { |
| 19 public: | 20 public: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 friend class Scope; | 58 friend class Scope; |
| 58 | 59 |
| 59 base::WeakPtrFactory<Runner> weak_factory_; | 60 base::WeakPtrFactory<Runner> weak_factory_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(Runner); | 62 DISALLOW_COPY_AND_ASSIGN(Runner); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace gin | 65 } // namespace gin |
| 65 | 66 |
| 66 #endif // GIN_RUNNER_H_ | 67 #endif // GIN_RUNNER_H_ |
| OLD | NEW |