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 COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTICTIONS_CLIENT_RESULT_H_ | |
| 6 #define COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTICTIONS_CLIENT_RESULT_H_ | |
|
Bernhard Bauer
2016/04/18 14:48:34
This file should be .../web_restrictions_client_re
aberent
2016/05/18 20:06:50
Done.
| |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/android/jni_android.h" | |
| 11 #include "base/android/scoped_java_ref.h" | |
| 12 | |
| 13 namespace web_restrictions { | |
| 14 | |
| 15 // Wrapper for Java WebRestrictionsResult | |
| 16 class WebRestrictionsClientResult { | |
| 17 public: | |
| 18 WebRestrictionsClientResult(); | |
|
Bernhard Bauer
2016/04/18 14:48:34
Is this constructor used?
aberent
2016/05/18 20:06:50
Not now that I have changed the code to use std::m
| |
| 19 WebRestrictionsClientResult( | |
| 20 base::android::ScopedJavaGlobalRef<jobject>& jresult); | |
|
Bernhard Bauer
2016/04/18 14:48:34
Nit: empty line after the constructors.
aberent
2016/05/18 20:06:50
Done.
| |
| 21 bool ShouldProceed() const; | |
| 22 int GetColumnCount() const; | |
| 23 bool IsString(int column) const; | |
| 24 int GetInt(int column) const; | |
| 25 std::string GetString(int column) const; | |
| 26 std::string GetColumnName(int column) const; | |
| 27 | |
| 28 // Register JNI methods. | |
| 29 static bool Register(JNIEnv* env); | |
| 30 | |
| 31 private: | |
| 32 base::android::ScopedJavaGlobalRef<jobject> jresult_; | |
|
Bernhard Bauer
2016/04/18 14:48:34
DISALLOW_COPY_AND_ASSIGN? It would be weird to mak
aberent
2016/05/18 20:06:50
No. It needs to be copyable:
1 - To allow its inse
| |
| 33 }; | |
| 34 | |
| 35 } // namespace web_restrictions | |
| 36 | |
| 37 #endif // COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTICTIONS_CLIENT_RESULT_H_ | |
| OLD | NEW |