OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_RENDERER_MOJO_BINDINGS_CONTROLLER_H_ | 5 #ifndef CONTENT_RENDERER_MOJO_BINDINGS_CONTROLLER_H_ |
6 #define CONTENT_RENDERER_MOJO_BINDINGS_CONTROLLER_H_ | 6 #define CONTENT_RENDERER_MOJO_BINDINGS_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 ~MojoBindingsController() override; | 36 ~MojoBindingsController() override; |
37 | 37 |
38 void CreateContextState(); | 38 void CreateContextState(); |
39 void DestroyContextState(v8::Local<v8::Context> context); | 39 void DestroyContextState(v8::Local<v8::Context> context); |
40 MojoContextState* GetContextState(); | 40 MojoContextState* GetContextState(); |
41 | 41 |
42 // RenderFrameObserver overrides: | 42 // RenderFrameObserver overrides: |
43 void WillReleaseScriptContext(v8::Local<v8::Context> context, | 43 void WillReleaseScriptContext(v8::Local<v8::Context> context, |
44 int world_id) override; | 44 int world_id) override; |
45 void DidClearWindowObject() override; | 45 void DidClearWindowObject() override; |
| 46 void OnDestruct() override; |
46 | 47 |
47 const bool for_layout_tests_; | 48 const bool for_layout_tests_; |
48 | 49 |
49 DISALLOW_COPY_AND_ASSIGN(MojoBindingsController); | 50 DISALLOW_COPY_AND_ASSIGN(MojoBindingsController); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace content | 53 } // namespace content |
53 | 54 |
54 #endif // CONTENT_RENDERER_MOJO_BINDINGS_CONTROLLER_H_ | 55 #endif // CONTENT_RENDERER_MOJO_BINDINGS_CONTROLLER_H_ |
OLD | NEW |