| OLD | NEW | 
|   1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |   1 // Copyright (c) 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 CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ |   5 #ifndef CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ | 
|   6 #define CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ |   6 #define CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ | 
|   7  |   7  | 
|   8 #include <jni.h> |   8 #include <jni.h> | 
|   9  |   9  | 
|  10 #include "base/android/scoped_java_ref.h" |  10 #include "base/android/scoped_java_ref.h" | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
|  27   CONNECTION_INTERNAL_PAGE, |  27   CONNECTION_INTERNAL_PAGE, | 
|  28 }; |  28 }; | 
|  29  |  29  | 
|  30 // Android implementation of the website settings UI. |  30 // Android implementation of the website settings UI. | 
|  31 class WebsiteSettingsPopupAndroid : public WebsiteSettingsUI { |  31 class WebsiteSettingsPopupAndroid : public WebsiteSettingsUI { | 
|  32  public: |  32  public: | 
|  33   WebsiteSettingsPopupAndroid(JNIEnv* env, |  33   WebsiteSettingsPopupAndroid(JNIEnv* env, | 
|  34                               jobject java_website_settings, |  34                               jobject java_website_settings, | 
|  35                               content::WebContents* web_contents); |  35                               content::WebContents* web_contents); | 
|  36   ~WebsiteSettingsPopupAndroid() override; |  36   ~WebsiteSettingsPopupAndroid() override; | 
|  37   void Destroy(JNIEnv* env, jobject obj); |  37   void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 
|  38   void OnPermissionSettingChanged(JNIEnv* env, |  38   void OnPermissionSettingChanged( | 
|  39                                   jobject obj, |  39       JNIEnv* env, | 
|  40                                   jint type, |  40       const base::android::JavaParamRef<jobject>& obj, | 
|  41                                   jint setting); |  41       jint type, | 
 |  42       jint setting); | 
|  42  |  43  | 
|  43   // WebsiteSettingsUI implementations. |  44   // WebsiteSettingsUI implementations. | 
|  44   void SetCookieInfo(const CookieInfoList& cookie_info_list) override; |  45   void SetCookieInfo(const CookieInfoList& cookie_info_list) override; | 
|  45   void SetPermissionInfo( |  46   void SetPermissionInfo( | 
|  46       const PermissionInfoList& permission_info_list) override; |  47       const PermissionInfoList& permission_info_list) override; | 
|  47   void SetIdentityInfo(const IdentityInfo& identity_info) override; |  48   void SetIdentityInfo(const IdentityInfo& identity_info) override; | 
|  48   void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) override; |  49   void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) override; | 
|  49  |  50  | 
|  50   static bool RegisterWebsiteSettingsPopupAndroid(JNIEnv* env); |  51   static bool RegisterWebsiteSettingsPopupAndroid(JNIEnv* env); | 
|  51  |  52  | 
|  52  private: |  53  private: | 
|  53   // The presenter that controlls the Website Settings UI. |  54   // The presenter that controlls the Website Settings UI. | 
|  54   scoped_ptr<WebsiteSettings> presenter_; |  55   scoped_ptr<WebsiteSettings> presenter_; | 
|  55  |  56  | 
|  56   // The java prompt implementation. |  57   // The java prompt implementation. | 
|  57   base::android::ScopedJavaGlobalRef<jobject> popup_jobject_; |  58   base::android::ScopedJavaGlobalRef<jobject> popup_jobject_; | 
|  58  |  59  | 
|  59   GURL url_; |  60   GURL url_; | 
|  60  |  61  | 
|  61   DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupAndroid); |  62   DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupAndroid); | 
|  62 }; |  63 }; | 
|  63  |  64  | 
|  64 #endif  // CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ |  65 #endif  // CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ | 
| OLD | NEW |