| 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 CHROME_BROWSER_UI_WEBUI_OPTIONS_PEPPER_FLASH_CONTENT_SETTINGS_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PEPPER_FLASH_CONTENT_SETTINGS_UTILS_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PEPPER_FLASH_CONTENT_SETTINGS_UTILS_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PEPPER_FLASH_CONTENT_SETTINGS_UTILS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "components/content_settings/core/common/content_settings.h" | 10 #include "components/content_settings/core/common/content_settings.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // exceptions. |exceptions_1| and |exceptions_2| should be sorted by | 46 // exceptions. |exceptions_1| and |exceptions_2| should be sorted by |
| 47 // SortMediaExceptions() before passing into this method. | 47 // SortMediaExceptions() before passing into this method. |
| 48 // | 48 // |
| 49 // When an element of |exceptions_1| has a pattern that doesn't match any | 49 // When an element of |exceptions_1| has a pattern that doesn't match any |
| 50 // element of |exceptions_2|, it would be compared with |default_setting_2|, | 50 // element of |exceptions_2|, it would be compared with |default_setting_2|, |
| 51 // and visa versa. | 51 // and visa versa. |
| 52 // | 52 // |
| 53 // |ignore_audio_setting| and |ignore_video_setting| specify whether to skip | 53 // |ignore_audio_setting| and |ignore_video_setting| specify whether to skip |
| 54 // comparison of the |audio_setting| and |video_setting| field of | 54 // comparison of the |audio_setting| and |video_setting| field of |
| 55 // MediaException, respectively. | 55 // MediaException, respectively. |
| 56 static bool AreMediaExceptionsEqual(ContentSetting default_setting_1, | 56 static bool AreMediaExceptionsEqual(ContentSetting default_audio_setting_1, |
| 57 ContentSetting default_video_setting_1, |
| 57 const MediaExceptions& exceptions_1, | 58 const MediaExceptions& exceptions_1, |
| 58 ContentSetting default_setting_2, | 59 ContentSetting default_audio_setting_2, |
| 60 ContentSetting default_video_setting_2, |
| 59 const MediaExceptions& exceptions_2, | 61 const MediaExceptions& exceptions_2, |
| 60 bool ignore_audio_setting, | 62 bool ignore_audio_setting, |
| 61 bool ignore_video_setting); | 63 bool ignore_video_setting); |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 } // namespace options | 66 } // namespace options |
| 65 | 67 |
| 66 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PEPPER_FLASH_CONTENT_SETTINGS_UTILS_H
_ | 68 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PEPPER_FLASH_CONTENT_SETTINGS_UTILS_H
_ |
| OLD | NEW |