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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 12091115: Allow manifest handlers to declare keys they depend on that must be parsed before them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dcronin Created 7 years, 10 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 | 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/chromeos/extensions/file_browser_private_api.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h"
6 6
7 #include <sys/stat.h> 7 #include <sys/stat.h>
8 #include <sys/statvfs.h> 8 #include <sys/statvfs.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <utime.h> 10 #include <utime.h>
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 int child_id_; 567 int child_id_;
568 // Extension source URL. 568 // Extension source URL.
569 scoped_refptr<const Extension> extension_; 569 scoped_refptr<const Extension> extension_;
570 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemCallbackDispatcher); 570 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemCallbackDispatcher);
571 }; 571 };
572 572
573 FileBrowserPrivateAPI::FileBrowserPrivateAPI(Profile* profile) 573 FileBrowserPrivateAPI::FileBrowserPrivateAPI(Profile* profile)
574 : event_router_(make_scoped_refptr(new FileBrowserEventRouter(profile))) { 574 : event_router_(make_scoped_refptr(new FileBrowserEventRouter(profile))) {
575 extensions::ManifestHandler::Register( 575 extensions::ManifestHandler::Register(
576 extension_manifest_keys::kFileBrowserHandlers, 576 extension_manifest_keys::kFileBrowserHandlers,
577 new FileBrowserHandlerParser); 577 make_linked_ptr(new FileBrowserHandlerParser));
578 578
579 ExtensionFunctionRegistry* registry = 579 ExtensionFunctionRegistry* registry =
580 ExtensionFunctionRegistry::GetInstance(); 580 ExtensionFunctionRegistry::GetInstance();
581 registry->RegisterFunction<CancelFileDialogFunction>(); 581 registry->RegisterFunction<CancelFileDialogFunction>();
582 registry->RegisterFunction<ExecuteTasksFileBrowserFunction>(); 582 registry->RegisterFunction<ExecuteTasksFileBrowserFunction>();
583 registry->RegisterFunction<SetDefaultTaskFileBrowserFunction>(); 583 registry->RegisterFunction<SetDefaultTaskFileBrowserFunction>();
584 registry->RegisterFunction<FileDialogStringsFunction>(); 584 registry->RegisterFunction<FileDialogStringsFunction>();
585 registry->RegisterFunction<GetFileTasksFileBrowserFunction>(); 585 registry->RegisterFunction<GetFileTasksFileBrowserFunction>();
586 registry->RegisterFunction<GetVolumeMetadataFunction>(); 586 registry->RegisterFunction<GetVolumeMetadataFunction>();
587 registry->RegisterFunction<RequestLocalFileSystemFunction>(); 587 registry->RegisterFunction<RequestLocalFileSystemFunction>();
(...skipping 2553 matching lines...) Expand 10 before | Expand all | Expand 10 after
3141 3141
3142 zip_file_creator_->Start(); 3142 zip_file_creator_->Start();
3143 return true; 3143 return true;
3144 } 3144 }
3145 3145
3146 void ZipSelectionFunction::OnZipDone(bool success) { 3146 void ZipSelectionFunction::OnZipDone(bool success) {
3147 SetResult(new base::FundamentalValue(success)); 3147 SetResult(new base::FundamentalValue(success));
3148 SendResponse(true); 3148 SendResponse(true);
3149 Release(); 3149 Release();
3150 } 3150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698