| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H
_ | 5 #ifndef COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H
_ |
| 6 #define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H
_ | 6 #define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H
_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 private: | 122 private: |
| 123 // We depend on the java side user of WebContentDelegateAndroid to hold a | 123 // We depend on the java side user of WebContentDelegateAndroid to hold a |
| 124 // strong reference to that object as long as they want to receive callbacks | 124 // strong reference to that object as long as they want to receive callbacks |
| 125 // on it. Using a weak ref here allows it to be correctly GCed. | 125 // on it. Using a weak ref here allows it to be correctly GCed. |
| 126 JavaObjectWeakGlobalRef weak_java_delegate_; | 126 JavaObjectWeakGlobalRef weak_java_delegate_; |
| 127 | 127 |
| 128 std::unique_ptr<ValidationMessageBubbleAndroid> validation_message_bubble_; | 128 std::unique_ptr<ValidationMessageBubbleAndroid> validation_message_bubble_; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 bool RegisterWebContentsDelegateAndroid(JNIEnv* env); | |
| 132 | |
| 133 } // namespace web_contents_delegate_android | 131 } // namespace web_contents_delegate_android |
| 134 | 132 |
| 135 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI
D_H_ | 133 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI
D_H_ |
| OLD | NEW |