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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 1147213004: Store and load icudtl.dat directly from the apk rather than extracting on start-up (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@load-from-apk
Patch Set: Keep extracting for components/ Created 5 years, 6 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
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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 614
615 // Allows the embedder to record |metric| for a specific |url|. 615 // Allows the embedder to record |metric| for a specific |url|.
616 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} 616 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {}
617 617
618 #if defined(OS_POSIX) && !defined(OS_MACOSX) 618 #if defined(OS_POSIX) && !defined(OS_MACOSX)
619 // Populates |mappings| with all files that need to be mapped before launching 619 // Populates |mappings| with all files that need to be mapped before launching
620 // a child process. 620 // a child process.
621 virtual void GetAdditionalMappedFilesForChildProcess( 621 virtual void GetAdditionalMappedFilesForChildProcess(
622 const base::CommandLine& command_line, 622 const base::CommandLine& command_line,
623 int child_process_id, 623 int child_process_id,
624 FileDescriptorInfo* mappings) {} 624 FileDescriptorInfo* mappings
625 #if defined(OS_ANDROID)
626 , std::map<int, base::MemoryMappedFile::Region>* regions
627 #endif
628 ) {}
625 #endif 629 #endif
626 630
627 #if defined(OS_WIN) 631 #if defined(OS_WIN)
628 // Returns the name of the dll that contains cursors and other resources. 632 // Returns the name of the dll that contains cursors and other resources.
629 virtual const wchar_t* GetResourceDllName(); 633 virtual const wchar_t* GetResourceDllName();
630 634
631 // This is called on the PROCESS_LAUNCHER thread before the renderer process 635 // This is called on the PROCESS_LAUNCHER thread before the renderer process
632 // is launched. It gives the embedder a chance to add loosen the sandbox 636 // is launched. It gives the embedder a chance to add loosen the sandbox
633 // policy. 637 // policy.
634 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, 638 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy,
635 bool* success) {} 639 bool* success) {}
636 #endif 640 #endif
637 641
638 #if defined(VIDEO_HOLE) 642 #if defined(VIDEO_HOLE)
639 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 643 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
640 // implementation. Return nullptr to disable external surface video. 644 // implementation. Return nullptr to disable external surface video.
641 virtual ExternalVideoSurfaceContainer* 645 virtual ExternalVideoSurfaceContainer*
642 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 646 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
643 #endif 647 #endif
644 }; 648 };
645 649
646 } // namespace content 650 } // namespace content
647 651
648 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698