| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/ui/webui/identity_internals_ui.h" | 5 #include "chrome/browser/ui/webui/identity_internals_ui.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/i18n/time_formatting.h" | 11 #include "base/i18n/time_formatting.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/extensions/api/identity/identity_api.h" | 14 #include "chrome/browser/extensions/api/identity/identity_api.h" |
| 15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 #include "content/public/browser/web_ui.h" | 18 #include "content/public/browser/web_ui.h" |
| 19 #include "content/public/browser/web_ui_controller.h" | 19 #include "content/public/browser/web_ui_controller.h" |
| 20 #include "content/public/browser/web_ui_data_source.h" | 20 #include "content/public/browser/web_ui_data_source.h" |
| 21 #include "content/public/browser/web_ui_message_handler.h" | 21 #include "content/public/browser/web_ui_message_handler.h" |
| 22 #include "extensions/browser/extension_system.h" |
| 22 #include "google_apis/gaia/gaia_auth_fetcher.h" | 23 #include "google_apis/gaia/gaia_auth_fetcher.h" |
| 23 #include "google_apis/gaia/gaia_constants.h" | 24 #include "google_apis/gaia/gaia_constants.h" |
| 24 #include "grit/browser_resources.h" | 25 #include "grit/browser_resources.h" |
| 25 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
| 26 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 27 | 28 |
| 28 namespace { | 29 namespace { |
| 29 | 30 |
| 30 // Properties of the Javascript object representing a token. | 31 // Properties of the Javascript object representing a token. |
| 31 const char kExtensionId[] = "extensionId"; | 32 const char kExtensionId[] = "extensionId"; |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 html_source->AddResourcePath("identity_internals.js", | 303 html_source->AddResourcePath("identity_internals.js", |
| 303 IDR_IDENTITY_INTERNALS_JS); | 304 IDR_IDENTITY_INTERNALS_JS); |
| 304 html_source->SetDefaultResource(IDR_IDENTITY_INTERNALS_HTML); | 305 html_source->SetDefaultResource(IDR_IDENTITY_INTERNALS_HTML); |
| 305 | 306 |
| 306 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), html_source); | 307 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), html_source); |
| 307 | 308 |
| 308 web_ui->AddMessageHandler(new IdentityInternalsUIMessageHandler()); | 309 web_ui->AddMessageHandler(new IdentityInternalsUIMessageHandler()); |
| 309 } | 310 } |
| 310 | 311 |
| 311 IdentityInternalsUI::~IdentityInternalsUI() {} | 312 IdentityInternalsUI::~IdentityInternalsUI() {} |
| OLD | NEW |