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

Side by Side Diff: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_enumerator.h" 10 #include "base/files/file_enumerator.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/chromeos/drive/file_system_interface.h" 21 #include "chrome/browser/chromeos/drive/file_system_interface.h"
22 #include "chrome/browser/chromeos/drive/file_system_util.h" 22 #include "chrome/browser/chromeos/drive/file_system_util.h"
23 #include "chrome/browser/chromeos/drive/job_list.h" 23 #include "chrome/browser/chromeos/drive/job_list.h"
24 #include "chrome/browser/chromeos/drive/logging.h" 24 #include "chrome/browser/chromeos/drive/logging.h"
25 #include "chrome/browser/drive/drive_api_util.h" 25 #include "chrome/browser/drive/drive_api_util.h"
26 #include "chrome/browser/drive/drive_notification_manager.h" 26 #include "chrome/browser/drive/drive_notification_manager.h"
27 #include "chrome/browser/drive/drive_notification_manager_factory.h" 27 #include "chrome/browser/drive/drive_notification_manager_factory.h"
28 #include "chrome/browser/drive/drive_service_interface.h" 28 #include "chrome/browser/drive/drive_service_interface.h"
29 #include "chrome/browser/drive/drive_switches.h" 29 #include "chrome/browser/drive/drive_switches.h"
30 #include "chrome/browser/drive/event_logger.h" 30 #include "chrome/browser/drive/event_logger.h"
31 #include "chrome/browser/google_apis/auth_service.h"
32 #include "chrome/browser/google_apis/drive_api_parser.h"
33 #include "chrome/browser/google_apis/gdata_errorcode.h"
34 #include "chrome/browser/google_apis/gdata_wapi_parser.h"
35 #include "chrome/browser/google_apis/time_util.h"
36 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
37 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
38 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
39 #include "chromeos/chromeos_switches.h" 34 #include "chromeos/chromeos_switches.h"
40 #include "content/public/browser/browser_thread.h" 35 #include "content/public/browser/browser_thread.h"
41 #include "content/public/browser/web_ui.h" 36 #include "content/public/browser/web_ui.h"
42 #include "content/public/browser/web_ui_data_source.h" 37 #include "content/public/browser/web_ui_data_source.h"
43 #include "content/public/browser/web_ui_message_handler.h" 38 #include "content/public/browser/web_ui_message_handler.h"
39 #include "google_apis/drive/auth_service.h"
40 #include "google_apis/drive/drive_api_parser.h"
41 #include "google_apis/drive/gdata_errorcode.h"
42 #include "google_apis/drive/gdata_wapi_parser.h"
43 #include "google_apis/drive/time_util.h"
44 #include "grit/browser_resources.h" 44 #include "grit/browser_resources.h"
45 45
46 using content::BrowserThread; 46 using content::BrowserThread;
47 47
48 namespace chromeos { 48 namespace chromeos {
49 49
50 namespace { 50 namespace {
51 51
52 // Gets metadata of all files and directories in |root_path| 52 // Gets metadata of all files and directories in |root_path|
53 // recursively. Stores the result as a list of dictionaries like: 53 // recursively. Stores the result as a list of dictionaries like:
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost); 865 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost);
866 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS); 866 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS);
867 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS); 867 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS);
868 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML); 868 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML);
869 869
870 Profile* profile = Profile::FromWebUI(web_ui); 870 Profile* profile = Profile::FromWebUI(web_ui);
871 content::WebUIDataSource::Add(profile, source); 871 content::WebUIDataSource::Add(profile, source);
872 } 872 }
873 873
874 } // namespace chromeos 874 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698