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

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

Issue 1181953002: Load non-locale .pak files directly from the .apk on Android (rather than extracting on start-up). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@raw-paks
Patch Set: fix unused LoadMainAndroidPackFile 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 615
616 // Allows the embedder to record |metric| for a specific |url|. 616 // Allows the embedder to record |metric| for a specific |url|.
617 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} 617 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {}
618 618
619 #if defined(OS_POSIX) && !defined(OS_MACOSX) 619 #if defined(OS_POSIX) && !defined(OS_MACOSX)
620 // Populates |mappings| with all files that need to be mapped before launching 620 // Populates |mappings| with all files that need to be mapped before launching
621 // a child process. 621 // a child process.
622 virtual void GetAdditionalMappedFilesForChildProcess( 622 virtual void GetAdditionalMappedFilesForChildProcess(
623 const base::CommandLine& command_line, 623 const base::CommandLine& command_line,
624 int child_process_id, 624 int child_process_id,
625 FileDescriptorInfo* mappings) {} 625 content::FileDescriptorInfo* mappings
626 #if defined(OS_ANDROID)
jochen (gone - plz use gerrit) 2015/06/17 08:47:54 please ifdef the entire method, not just part of i
agrieve 2015/06/17 14:25:31 Done.
627 , std::map<int, base::MemoryMappedFile::Region>* regions
626 #endif 628 #endif
629 ) {};
Yaron 2015/06/17 14:12:28 remove ";"
agrieve 2015/06/17 14:35:40 Done.
630 #endif // defined(OS_POSIX) && !defined(OS_MACOSX)
627 631
628 #if defined(OS_WIN) 632 #if defined(OS_WIN)
629 // Returns the name of the dll that contains cursors and other resources. 633 // Returns the name of the dll that contains cursors and other resources.
630 virtual const wchar_t* GetResourceDllName(); 634 virtual const wchar_t* GetResourceDllName();
631 635
632 // This is called on the PROCESS_LAUNCHER thread before the renderer process 636 // This is called on the PROCESS_LAUNCHER thread before the renderer process
633 // is launched. It gives the embedder a chance to add loosen the sandbox 637 // is launched. It gives the embedder a chance to add loosen the sandbox
634 // policy. 638 // policy.
635 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, 639 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy,
636 bool* success) {} 640 bool* success) {}
637 #endif 641 #endif
638 642
639 #if defined(VIDEO_HOLE) 643 #if defined(VIDEO_HOLE)
640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 644 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
641 // implementation. Return nullptr to disable external surface video. 645 // implementation. Return nullptr to disable external surface video.
642 virtual ExternalVideoSurfaceContainer* 646 virtual ExternalVideoSurfaceContainer*
643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 647 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
644 #endif 648 #endif
645 }; 649 };
646 650
647 } // namespace content 651 } // namespace content
648 652
649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 653 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698