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

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: formatting nit 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 603
604 // Allows the embedder to record |metric| for a specific |url|. 604 // Allows the embedder to record |metric| for a specific |url|.
605 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} 605 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {}
606 606
607 #if defined(OS_POSIX) && !defined(OS_MACOSX) 607 #if defined(OS_POSIX) && !defined(OS_MACOSX)
608 // Populates |mappings| with all files that need to be mapped before launching 608 // Populates |mappings| with all files that need to be mapped before launching
609 // a child process. 609 // a child process.
610 virtual void GetAdditionalMappedFilesForChildProcess( 610 virtual void GetAdditionalMappedFilesForChildProcess(
611 const base::CommandLine& command_line, 611 const base::CommandLine& command_line,
612 int child_process_id, 612 int child_process_id,
613 FileDescriptorInfo* mappings) {} 613 FileDescriptorInfo* mappings
614 #if defined(OS_ANDROID)
615 , std::map<int, base::MemoryMappedFile::Region>* regions
616 #endif
617 ) {}
614 #endif 618 #endif
615 619
616 #if defined(OS_WIN) 620 #if defined(OS_WIN)
617 // Returns the name of the dll that contains cursors and other resources. 621 // Returns the name of the dll that contains cursors and other resources.
618 virtual const wchar_t* GetResourceDllName(); 622 virtual const wchar_t* GetResourceDllName();
619 623
620 // This is called on the PROCESS_LAUNCHER thread before the renderer process 624 // This is called on the PROCESS_LAUNCHER thread before the renderer process
621 // is launched. It gives the embedder a chance to add loosen the sandbox 625 // is launched. It gives the embedder a chance to add loosen the sandbox
622 // policy. 626 // policy.
623 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, 627 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy,
624 bool* success) {} 628 bool* success) {}
625 #endif 629 #endif
626 630
627 #if defined(VIDEO_HOLE) 631 #if defined(VIDEO_HOLE)
628 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 632 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
629 // implementation. Return nullptr to disable external surface video. 633 // implementation. Return nullptr to disable external surface video.
630 virtual ExternalVideoSurfaceContainer* 634 virtual ExternalVideoSurfaceContainer*
631 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 635 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
632 #endif 636 #endif
633 }; 637 };
634 638
635 } // namespace content 639 } // namespace content
636 640
637 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 641 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698