Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: components/web_restrictions/browser/web_restrictions_client_result.h

Issue 1890203002: Implement Web Restrictions in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments, and fix a possible race in displaying error page Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_RESTRICTIONS_CLIENT_RESULT_H_
6 #define COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_CLIENT_RESULT_H_
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(
19 base::android::ScopedJavaGlobalRef<jobject>& jresult);
20
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_;
33 };
34
35 } // namespace web_restrictions
36
37 #endif // COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_CLIENT_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698